Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 631 for Identical (4.08 sec)

  1. src/go/types/under.go

    		}
    		return su
    	}
    	return nil
    }
    
    // If x and y are identical, match returns x.
    // If x and y are identical channels but for their direction
    // and one of them is unrestricted, match returns the channel
    // with the restricted direction.
    // In all other cases, match returns nil.
    func match(x, y Type) Type {
    	// Common case: we don't have channels.
    	if Identical(x, y) {
    		return x
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 22:34:27 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  2. src/cmd/go/testdata/script/build_trimpath.txt

    stdout 'binary contains module root: false'
    stdout 'binary contains an empty GOROOT'
    go mod edit -droprequire rsc.io/fortune
    
    # Two binaries built from identical packages in different directories
    # should be identical.
    cd $WORK/b/src/paths
    go build -trimpath -o $WORK/paths-b.exe
    cmp -q $WORK/paths-a.exe $WORK/paths-b.exe
    
    
    # Same sequence of tests but with overlays.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 22:16:54 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/under.go

    		}
    		return su
    	}
    	return nil
    }
    
    // If x and y are identical, match returns x.
    // If x and y are identical channels but for their direction
    // and one of them is unrestricted, match returns the channel
    // with the restricted direction.
    // In all other cases, match returns nil.
    func match(x, y Type) Type {
    	// Common case: we don't have channels.
    	if Identical(x, y) {
    		return x
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 22:34:27 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  4. src/go/types/context_test.go

    		t.Error("bad")
    	}
    
    	// unaryP is not identical to nullaryP, so we should not get inst when
    	// instantiated with identical type arguments.
    	if got := ctxt.lookup("", unaryP, []Type{Typ[Int]}); got != nil {
    		t.Error("bad")
    	}
    
    	// nullaryQ is identical to nullaryP, so we *should* get inst when
    	// instantiated with identical type arguments.
    	if got := ctxt.lookup("", nullaryQ, []Type{Typ[Int]}); got != inst {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  5. staging/src/k8s.io/api/testdata/README.md

    To run serialization tests just for the current version:
    
    ```sh
    go test k8s.io/api -run //HEAD
    ```
    
    All three formats of a given group/version/kind are expected to decode successfully to identical objects,
    and to round-trip back to serialized form with identical bytes.
    Adding new fields or API types *is* expected to modify these fixtures. To regenerate them, run:
    
    ```sh
    UPDATE_COMPATIBILITY_FIXTURE_DATA=true go test k8s.io/api -run //HEAD
    ```
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:06:52 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  6. test/typeparam/nested.go

    //
    // From this data it tests two things:
    //
    // 1. Given tuples (A, B, F[A].T[B]) and (A', B', F[A'].T[B']),
    //    F[A].T[B] should be identical to F[A'].T[B'] iff (A, B) is
    //    identical to (A', B').
    //
    // 2. A few of the instantiations are constructed to be identical, and
    //    it tests that exactly these pairs are duplicated (by golden
    //    output comparison to nested.out).
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 30 17:23:27 UTC 2022
    - 3K bytes
    - Viewed (0)
  7. src/internal/types/testdata/fixedbugs/issue60688.go

    // license that can be found in the LICENSE file.
    
    package p
    
    type String string
    
    func g[P any](P, string) {}
    
    // String and string are not identical and thus must not unify
    // (they are element types of the func type and therefore must
    // be identical to match).
    // The result is an error from type inference, rather than an
    // error from an assignment mismatch.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 12 18:44:59 UTC 2023
    - 607 bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/tools/go/types/typeutil/map.go

    	case *types.Union:
    		return h.hashUnion(t)
    
    	case *types.Interface:
    		// Interfaces are identical if they have the same set of methods, with
    		// identical names and types, and they have the same set of type
    		// restrictions. See go/types.identical for more details.
    		var hash uint32 = 9103
    
    		// Hash methods.
    		for i, n := 0, t.NumMethods(); i < n; i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  9. src/internal/abi/abi_generic.go

    	// IntArgRegs is the number of registers dedicated
    	// to passing integer argument values. Result registers are identical
    	// to argument registers, so this number is used for those too.
    	IntArgRegs = 0
    
    	// FloatArgRegs is the number of registers dedicated
    	// to passing floating-point argument values. Result registers are
    	// identical to argument registers, so this number is used for
    	// those too.
    	FloatArgRegs = 0
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 17:38:52 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  10. operator/cmd/mesh/profile-diff_test.go

    			expectedString: "Profiles are identical",
    		},
    		{
    			args:           fmt.Sprintf("profile diff demo demo --manifests %s", snapshotCharts),
    			expectedString: "Profiles are identical",
    		},
    		{
    			args:           fmt.Sprintf("profile diff openshift openshift --manifests %s", snapshotCharts),
    			expectedString: "Profiles are identical",
    		},
    	}
    
    	for i, c := range cases {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jan 10 05:10:03 UTC 2024
    - 3.6K bytes
    - Viewed (0)
Back to top