Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 631 for Identical (0.86 sec)

  1. src/go/types/typeterm.go

    	// easy cases
    	switch {
    	case x == nil || y == nil:
    		return x == y
    	case x.typ == nil || y.typ == nil:
    		return x.typ == y.typ
    	}
    	// ∅ ⊂ x, y ⊂ 𝓤
    
    	return x.tilde == y.tilde && Identical(x.typ, y.typ)
    }
    
    // union returns the union x ∪ y: zero, one, or two non-nil terms.
    func (x *term) union(y *term) (_, _ *term) {
    	// easy cases
    	switch {
    	case x == nil && y == nil:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/tools/internal/typeparams/typeterm.go

    	// easy cases
    	switch {
    	case x == nil || y == nil:
    		return x == y
    	case x.typ == nil || y.typ == nil:
    		return x.typ == y.typ
    	}
    	// ∅ ⊂ x, y ⊂ 𝓤
    
    	return x.tilde == y.tilde && types.Identical(x.typ, y.typ)
    }
    
    // union returns the union x ∪ y: zero, one, or two non-nil terms.
    func (x *term) union(y *term) (_, _ *term) {
    	// easy cases
    	switch {
    	case x == nil && y == nil:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 21 21:08:44 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  3. src/go/types/unify.go

    // type parameter and its core type.
    // If two types are not structurally equivalent, they cannot be Go
    // identical types. On the other hand, if they are structurally
    // equivalent, they may be Go identical or at least assignable, or
    // they may be in the type set of a constraint.
    // Whether they indeed are identical or assignable is determined
    // upon instantiation and function argument passing.
    
    package types
    
    import (
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 16:24:39 UTC 2024
    - 27.9K bytes
    - Viewed (0)
  4. src/go/types/conversions.go

    	Tu := under(T)
    	Vp, _ := V.(*TypeParam)
    	Tp, _ := T.(*TypeParam)
    
    	// "V and T have identical underlying types if tags are ignored
    	// and V and T are not type parameters"
    	if IdenticalIgnoreTags(Vu, Tu) && Vp == nil && Tp == nil {
    		return true
    	}
    
    	// "V and T are unnamed pointer types and their pointer base types
    	// have identical underlying types if tags are ignored
    	// and their pointer base types are not type parameters"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 18:51:00 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/typecheck/subr.go

    		return ir.OXXX, ""
    	}
    
    	// 1. src type is identical to dst.
    	if types.Identical(src, dst) {
    		return ir.OCONVNOP, ""
    	}
    
    	// 2. src and dst have identical underlying types and
    	//   a. either src or dst is not a named type, or
    	//   b. both are empty interface types, or
    	//   c. at least one is a gcshape type.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 05 19:45:58 UTC 2023
    - 20.2K bytes
    - Viewed (0)
  6. test/fixedbugs/issue49665.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package main
    
    import "fmt"
    
    var x any
    var y interface{}
    
    var _ = &x == &y // assert x and y have identical types
    
    func main() {
    	fmt.Printf("%T\n%T\n", &x, &y)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 330 bytes
    - Viewed (0)
  7. guava/src/com/google/common/base/Joiner.java

      }
    
      /**
       * Appends the string representation of each of {@code parts}, using the previously configured
       * separator between each, to {@code builder}. Identical to {@link #appendTo(Appendable,
       * Iterable)}, except that it does not throw {@link IOException}.
       */
      @CanIgnoreReturnValue
      public final StringBuilder appendTo(
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Dec 15 19:31:54 UTC 2023
    - 18.6K bytes
    - Viewed (0)
  8. src/cmd/cgo/internal/test/issue23555.go

    // Copyright 2018 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build cgo
    
    // Test that we can have two identical cgo packages in a single binary.
    // No runtime test; just make sure it compiles.
    
    package cgotest
    
    import (
    	_ "cmd/cgo/internal/test/issue23555a"
    	_ "cmd/cgo/internal/test/issue23555b"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:00:02 UTC 2023
    - 403 bytes
    - Viewed (0)
  9. src/cmd/compile/internal/types2/unify.go

    // type parameter and its core type.
    // If two types are not structurally equivalent, they cannot be Go
    // identical types. On the other hand, if they are structurally
    // equivalent, they may be Go identical or at least assignable, or
    // they may be in the type set of a constraint.
    // Whether they indeed are identical or assignable is determined
    // upon instantiation and function argument passing.
    
    package types2
    
    import (
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 16:24:39 UTC 2024
    - 27.8K bytes
    - Viewed (0)
  10. src/cmd/go/testdata/mod/example.com_stack_v1.0.0.txt

    Module with a function that prints file name for the top stack frame.
    Different versions of this module are identical, but they should return
    different file names with -trimpath.
    -- .mod --
    module example.com/stack
    
    go 1.14
    -- .info --
    {"Version":"v1.0.0"}
    -- stack.go --
    package stack
    
    import "runtime"
    
    func TopFile() string {
    	_, file, _, _ := runtime.Caller(0)
    	return file
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 14 22:55:12 UTC 2019
    - 380 bytes
    - Viewed (0)
Back to top