- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 74 for Identical (0.29 sec)
-
src/go/types/issues_test.go
if name.Name == "v" { v = obj break } } if v == nil { t.Fatal("variable v not found") } // type of v and T must be pointer-identical if v.Type() != T { t.Fatalf("types of v and T are not pointer-identical: %p != %p", v.Type().(*TypeParam), T) } } func TestIssue44410(t *testing.T) { const src = ` package p type A = []int type S struct{ A } `
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 28.1K bytes - Viewed (0) -
src/go/types/stmt.go
if val := goVal(v.val); val != nil { // look for duplicate types for a given value // (quadratic algorithm, but these lists tend to be very short) for _, vt := range seen[val] { if Identical(v.typ, vt.typ) { err := check.newError(DuplicateCase) err.addf(&v, "duplicate case %s in expression switch", &v) err.addf(atPos(vt.pos), "previous case") err.report() continue L }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 30.6K bytes - Viewed (0) -
src/math/rand/v2/rand_test.go
testWe[i] = float32(de / m2) } return } // compareUint32Slices returns the first index where the two slices // disagree, or <0 if the lengths are the same and all elements // are identical. func compareUint32Slices(s1, s2 []uint32) int { if len(s1) != len(s2) { if len(s1) > len(s2) { return len(s2) + 1 } return len(s1) + 1 } for i := range s1 { if s1[i] != s2[i] {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 18:42:28 UTC 2024 - 17.4K bytes - Viewed (0) -
src/cmd/compile/internal/types2/issues_test.go
if name.Value == "v" { v = obj break } } if v == nil { t.Fatal("variable v not found") } // type of v and T must be pointer-identical if v.Type() != T { t.Fatalf("types of v and T are not pointer-identical: %p != %p", v.Type().(*TypeParam), T) } } func TestIssue44410(t *testing.T) { const src = ` package p type A = []int type S struct{ A } `
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 28.1K bytes - Viewed (0) -
common/config/.golangci.yml
- name: call-to-gc - name: duplicated-imports - name: string-of-int - name: defer arguments: - - "call-chain" - name: unconditional-recursion - name: identical-branches # the following rules can be enabled in the future # - name: empty-lines # - name: confusing-results # - name: empty-block # - name: get-return
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Jun 04 20:03:06 UTC 2024 - 11.3K bytes - Viewed (0) -
src/cmd/compile/internal/types2/stmt.go
if val := goVal(v.val); val != nil { // look for duplicate types for a given value // (quadratic algorithm, but these lists tend to be very short) for _, vt := range seen[val] { if Identical(v.typ, vt.typ) { err := check.newError(DuplicateCase) err.addf(&v, "duplicate case %s in expression switch", &v) err.addf(vt.pos, "previous case") err.report() continue L } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 30.7K bytes - Viewed (0) -
maven-api-impl/src/main/java/org/apache/maven/internal/impl/DefaultDependencyResolverResult.java
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Tue Jun 11 07:23:04 UTC 2024 - 14.6K bytes - Viewed (0) -
src/cmd/compile/internal/types2/typestring.go
} case *Interface: if w.ctxt == nil { if t == universeAnyAlias.Type().Underlying() { // When not hashing, we can try to improve type strings by writing "any" // for a type that is pointer-identical to universeAny. // TODO(rfindley): this logic should not be necessary with // gotypesalias=1. Remove once that is always the case. w.string("any") break }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:01:18 UTC 2024 - 12.2K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/analysisinternal/analysis.go
matches[typ] = append(matches[typ], ident.Name) } } } return true }) return matches } func equivalentTypes(want, got types.Type) bool { if types.Identical(want, got) { return true } // Code segment to help check for untyped equality from (golang/go#32146). if rhs, ok := want.(*types.Basic); ok && rhs.Info()&types.IsUntyped > 0 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 16:19:04 UTC 2024 - 11.7K bytes - Viewed (0) -
src/go/types/typestring.go
} case *Interface: if w.ctxt == nil { if t == universeAnyAlias.Type().Underlying() { // When not hashing, we can try to improve type strings by writing "any" // for a type that is pointer-identical to universeAny. // TODO(rfindley): this logic should not be necessary with // gotypesalias=1. Remove once that is always the case. w.string("any") break }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:01:18 UTC 2024 - 12.3K bytes - Viewed (0)