Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 711 for identical (0.24 sec)

  1. src/cmd/go/testdata/mod/example.com_stack_v1.0.1.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.1"}
    -- 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)
  2. src/cmd/compile/internal/types2/operand.go

    	if x.mode == invalid || !isValid(T) {
    		return true, 0 // avoid spurious errors
    	}
    
    	origT := T
    	V := Unalias(x.typ)
    	T = Unalias(T)
    
    	// x's type is identical to T
    	if Identical(V, T) {
    		return true, 0
    	}
    
    	Vu := under(V)
    	Tu := under(T)
    	Vp, _ := V.(*TypeParam)
    	Tp, _ := T.(*TypeParam)
    
    	// x is an untyped value representable by a value of type T.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 21:17:10 UTC 2024
    - 11K bytes
    - Viewed (0)
  3. test/alias3.dir/c.go

    	var _ float64 = b.F(0)
    	var _ a.Rune = int32(0)
    
    	// embedded types can have different names but the same types
    	var s a.S
    	s.Int = 1
    	s.IntAlias = s.Int
    	s.IntAlias2 = s.Int
    
    	// aliases denote identical types across packages
    	var c a.Context = b.C
    	var _ b.MyContext = c
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 20 05:55:53 UTC 2017
    - 490 bytes
    - Viewed (0)
  4. src/internal/types/testdata/check/builtins1.go

    }
    
    func _[T ~[]byte](x, y T) {
    	copy(x, y)
    	copy(x, "foo")
    	copy("foo" /* ERROR "expects slice arguments" */ , y)
    
    	var x2 []byte
    	copy(x2, y) // element types are identical
    	copy(y, x2) // element types are identical
    
    	type myByte byte
    	var x3 []myByte
    	copy(x3 /* ERROR "different element types" */ , y)
    	copy(y /* ERROR "different element types" */ , x3)
    }
    
    func _[T ~[]E, E any](x T, y []E) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 18 21:16:29 UTC 2023
    - 6.8K bytes
    - Viewed (0)
  5. subprojects/core/src/test/groovy/org/gradle/process/internal/worker/request/RequestSerializerTest.groovy

            when:
            serializer.write(encoder, request)
            encoder.flush()
    
            and:
            def decodedRequest = serializer.read(decoder())
    
            then:
            identical(decodedRequest, request)
    
            and:
            encoded
            decoded
        }
    
        def "can serialize request and skip arg on read"() {
            def request = new Request(new Foo("foo"), buildOperation())
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun Mar 15 22:51:06 UTC 2020
    - 3.3K bytes
    - Viewed (0)
  6. test/fixedbugs/bug307.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Valid program, gccgo reported an error.
    // bug307.go:14:6: error: complex arguments must have identical types
    
    package main
    
    func main() {
    	var f float64
    	_ = complex(1/f, 0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 17 04:49:59 UTC 2012
    - 352 bytes
    - Viewed (0)
  7. pkg/test/framework/resource/context.go

    	// Cleanup will trigger the provided cleanup function after the test context
    	// completes. This is identical to CleanupStrategy(Always).
    	// This function may not (safely) access the test context.
    	Cleanup(fn func())
    
    	// CleanupConditionally will trigger a cleanup operation the test context
    	// completes, unless -istio.test.nocleanup is set. This is identical to
    	// CleanupStrategy(Conditionally).
    	// This function may not (safely) access the test context.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 25 19:30:47 UTC 2022
    - 3.2K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/transforms/split_merged_operands.cc

    //
    // MLIRConverter also benefits from lots of typical compiler optimization like
    // merging same input values if they're identical. These optimizations are
    // desirable but not for those TFLite ops which have variable tensors as inputs.
    // Yes, they have identical input values, but those identical values are
    // "stateful", their values can change during invocations.
    //
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 20:30:06 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/base/StringsTest.java

        assertEquals("a", Strings.commonPrefix("abc", "aaaaa"));
        assertEquals("aa", Strings.commonPrefix("aa", "aaaaa"));
        assertEquals("abc", Strings.commonPrefix(new StringBuffer("abcdef"), "abcxyz"));
    
        // Identical valid surrogate pairs.
        assertEquals(
            "abc\uD8AB\uDCAB", Strings.commonPrefix("abc\uD8AB\uDCABdef", "abc\uD8AB\uDCABxyz"));
        // Differing valid surrogate pairs.
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Feb 09 15:49:48 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/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
    - 9K bytes
    - Viewed (0)
Back to top