Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 77 for unambiguous (0.14 sec)

  1. src/internal/types/testdata/check/issues0.go

    }
    
    type T struct {
    	x int
    	E1
    	E2
    }
    
    type E1 struct{ f int }
    type E2 struct{ f int }
    
    func issue26234b(x T) {
    	_ = x.f /* ERROR "ambiguous selector x.f" */
    }
    
    func issue26234c() {
    	T.x /* ERROR "T.x undefined (type T has no method x)" */ ()
    }
    
    func issue35895() {
    	// T is defined in this package, don't qualify its name with the package name.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 05 18:13:11 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  2. src/go/printer/testdata/expressions.input

    		a...,
    	)
    	_ = append(
    		s,
    		a...,
    	)
    }
    
    // Literal function types in conversions must be parenthesized;
    // for now go/parser accepts the unparenthesized form where it
    // is non-ambiguous.
    func _() {
    	// these conversions should be rewritten to look
    	// the same as the parenthesized conversions below
    	_ = func()()(nil)
    	_ = func(x int)(float)(nil)
    	_ = func() func() func()()(nil)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 03 16:41:54 UTC 2017
    - 12.1K bytes
    - Viewed (0)
  3. src/internal/trace/summary_test.go

    			},
    			goroutines: []trace.GoID{7},
    		},
    	}
    	for id, summary := range summaries {
    		want, ok := wantTasks[id]
    		if !ok {
    			continue
    		}
    		if id != summary.ID {
    			t.Errorf("ambiguous task %d (or %d?): field likely set incorrectly", id, summary.ID)
    		}
    
    		// Check parent.
    		if want.parent != nil {
    			if summary.Parent == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  4. src/cmd/go/internal/modfetch/codehost/git.go

    		// Check whether rev is prefix of known ref hash.
    		for k, h := range refs {
    			if strings.HasPrefix(h, prefix) {
    				if hash != "" && hash != h {
    					// Hash is an ambiguous hash prefix.
    					// More information will not change that.
    					return nil, fmt.Errorf("ambiguous revision %s", rev)
    				}
    				if ref == "" || ref > k { // Break ties deterministically when multiple refs point at same hash.
    					ref = k
    				}
    				rev = h
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 11 22:10:38 UTC 2024
    - 27.4K bytes
    - Viewed (0)
  5. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/KotlinScript.kt

    
    /**
     * Base contract for all Gradle Kotlin DSL scripts.
     *
     * This is the Kotlin flavored equivalent of [org.gradle.api.Script].
     *
     * It is not implemented directly by the IDE script templates to overcome ambiguous conflicts and Kotlin language
     * limitations.
     *
     * @since 6.0
     */
    interface KotlinScript {
    
        /**
         * Logger for scripts. You can use this in your script to write log messages.
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 12.3K bytes
    - Viewed (0)
  6. pkg/api/pod/warnings.go

    						// If the HostPorts are the same and either HostIP is not specified while the other is not, the behavior is undefined.
    						warnings = append(warnings, fmt.Sprintf("%s: dangerously ambiguous port definition with %s", fldPath.Child("ports").Index(i), other.field))
    					}
    				}
    				allPorts[k] = append(allPorts[k], portBlock{field: fldPath.Child("ports").Index(i), port: port})
    			} else {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 17:51:48 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  7. cmd/sts-handlers.go

    		return
    	}
    
    	// We have to establish a TLS connection and the
    	// client must provide exactly one client certificate.
    	// Otherwise, we don't have a certificate to verify or
    	// the policy lookup would ambiguous.
    	if r.TLS == nil {
    		writeSTSErrorResponse(ctx, w, ErrSTSInsecureConnection, errors.New("No TLS connection attempt"))
    		return
    	}
    
    	// A client may send a certificate chain such that we end up
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jun 11 03:13:30 UTC 2024
    - 33.9K bytes
    - Viewed (0)
  8. src/go/printer/testdata/expressions.golden

    		a...,
    	)
    	_ = append(
    		s,
    		a...,
    	)
    }
    
    // Literal function types in conversions must be parenthesized;
    // for now go/parser accepts the unparenthesized form where it
    // is non-ambiguous.
    func _() {
    	// these conversions should be rewritten to look
    	// the same as the parenthesized conversions below
    	_ = (func())(nil)
    	_ = (func(x int) float)(nil)
    	_ = (func() func() func())(nil)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 03 16:41:54 UTC 2017
    - 12.4K bytes
    - Viewed (0)
  9. src/go/printer/testdata/expressions.raw

    		a...,
    	)
    	_ = append(
    		s,
    		a...,
    	)
    }
    
    // Literal function types in conversions must be parenthesized;
    // for now go/parser accepts the unparenthesized form where it
    // is non-ambiguous.
    func _() {
    	// these conversions should be rewritten to look
    	// the same as the parenthesized conversions below
    	_ = (func())(nil)
    	_ = (func(x int) float)(nil)
    	_ = (func() func() func())(nil)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 03 16:41:54 UTC 2017
    - 12.4K bytes
    - Viewed (0)
  10. src/log/slog/doc.go

    that writes structured records in text form to standard error:
    
    	logger := slog.New(slog.NewTextHandler(os.Stderr, nil))
    
    [TextHandler] output is a sequence of key=value pairs, easily and unambiguously
    parsed by machine. This statement:
    
    	logger.Info("hello", "count", 3)
    
    produces this output:
    
    	time=2022-11-08T15:28:26.000-05:00 level=INFO msg=hello count=3
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 15 14:35:48 UTC 2024
    - 12.3K bytes
    - Viewed (0)
Back to top