Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 711 for identical (0.36 sec)

  1. test/fixedbugs/issue18911.dir/b.go

    import "strings"
    
    func main() {
    	defer func() {
    		p, ok := recover().(error)
    		if ok && strings.Contains(p.Error(), "different packages") {
    			return
    		}
    		panic(p)
    	}()
    
    	// expected to fail and report two identical looking (but different) types
    	_ = a.X.(struct{ x int })
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 05 00:29:50 UTC 2018
    - 463 bytes
    - Viewed (0)
  2. test/fixedbugs/bug327.go

    // run
    
    // Copyright 2011 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.
    
    // Conversion between identical interfaces.
    // Issue 1647.
    
    // The compiler used to not realize this was a no-op,
    // so it generated a call to the non-existent function runtime.convE2E.
    
    package main
    
    type (
    	a interface{}
    	b interface{}
    )
    
    func main() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 454 bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/telemetry/internal/upload/Doc.txt

    the count files are no longer needed and can be deleted.
    
    Third phase. Look at the .json files in the list from the first phase.
    If the name starts with local, skip it. If there is a file with the
    identical name in the upload directory, remove the one in the local directory.
    Otherwise try to upload the one in the local directory,
    If the upload succeeds, move the file to the uploaded directory.
    
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:57:25 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  4. test/fixedbugs/bug477.go

    // compile
    
    // Copyright 2013 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.
    
    // Test multiple identical unnamed structs with methods.  This caused
    // a compilation error with gccgo.
    
    package p
    
    type S1 struct{}
    
    func (s S1) M() {}
    
    type S2 struct {
    	F1 struct {
    		S1
    	}
    	F2 struct {
    		S1
    	}
    }
    
    type I interface {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 491 bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/testing/SerializableTester.java

      }
    
      /**
       * Serializes and deserializes the specified object and verifies that the re-serialized object is
       * equal to the provided object, that the hashcodes are identical, and that the class of the
       * re-serialized object is identical to that of the original.
       *
       * <p><b>GWT warning:</b> Under GWT, this method simply returns its input, as proper GWT
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Apr 25 11:57:12 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  6. src/internal/types/testdata/examples/operations.go

            _ = *p // ERROR "cannot indirect p"
    }
    
    func _[P interface{ *int }](p P) {
            _ = *p
    }
    
    func _[P interface{ *int | *string }](p P) {
            _ = *p // ERROR "must have identical base types"
    }
    
    type intPtr *int
    
    func _[P interface{ *int | intPtr } ](p P) {
            var _ int = *p
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:54:25 UTC 2023
    - 582 bytes
    - Viewed (0)
  7. android/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/internal/syscall/windows/memory_windows.go

    	// The memory protection option when the region was initially allocated
    	AllocationProtect uint32
    	PartitionId       uint16
    	// The size of the region beginning at the base address in which all pages have identical attributes, in bytes.
    	RegionSize uintptr
    	// The state of the pages in the region.
    	State uint32
    	// The access protection of the pages in the region.
    	Protect uint32
    	// The type of pages in the region.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Aug 20 00:18:04 UTC 2022
    - 940 bytes
    - Viewed (0)
  9. test/fixedbugs/issue6977.go

    type J interface { g(); String() string }
    
    type IJ1 = interface { I; J }
    type IJ2 = interface { f(); g(); String() string }
    
    var _ = (*IJ1)(nil) == (*IJ2)(nil) // static assert that IJ1 and IJ2 are identical types
    
    // The canonical example.
    
    type ReadWriteCloser interface { io.ReadCloser; io.WriteCloser }
    
    // Some more cases.
    
    type M interface { m() }
    type M32 interface { m() int32 }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 03 20:30:02 UTC 2020
    - 1.1K bytes
    - Viewed (0)
  10. src/cmd/go/testdata/script/build_cache_trimpath.txt

    cd $WORK
    go build -o a.out
    
    # Varying -trimpath should cause a rebuild.
    go build -x -o a.out -trimpath
    stderr '(compile|gccgo)( |\.exe)'
    stderr 'link( |\.exe)'
    
    # Two distinct versions of the same module with identical content should
    # still be cached separately.
    # Verifies golang.org/issue/35412.
    go get example.com/stack@v1.0.0
    go run -trimpath printstack.go
    stdout '^example.com/stack@v1.0.0/stack.go$'
    go get example.com/stack@v1.0.1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 28 17:19:14 UTC 2021
    - 865 bytes
    - Viewed (0)
Back to top