- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 714 for incomparable (0.14 sec)
-
src/internal/types/testdata/fixedbugs/issue48712.go
_ = x /* ERROR "incomparable types in type set" */ == y _ = y /* ERROR "incomparable types in type set" */ == x _ = y /* ERROR "incomparable types in type set" */ == y _ = x /* ERROR "type parameter P is not comparable with <" */ < y } func _[P any](x P, y any) { _ = x /* ERROR "incomparable types in type set" */ == x _ = x /* ERROR "incomparable types in type set" */ == y _ = y == x // ERROR "incomparable types in type set"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 17 19:54:25 UTC 2023 - 1.1K bytes - Viewed (0) -
src/internal/types/testdata/spec/comparisons.go
_ = b < b _ = a /* ERROR "type parameter A is not comparable with <" */ < a _ = l /* ERROR "type parameter L is not comparable with <" */ < l _ = s /* ERROR "type parameter S is not comparable with <" */ < s _ = p /* ERROR "type parameter P is not comparable with <" */ < p _ = f /* ERROR "type parameter F is not comparable with <" */ < f _ = i /* ERROR "type parameter I is not comparable with <" */ < i
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 17 19:54:27 UTC 2023 - 3K bytes - Viewed (0) -
maven-model-builder/src/main/java/org/apache/maven/model/interpolation/reflection/MethodMap.java
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Tue Oct 17 17:55:08 UTC 2023 - 14.1K bytes - Viewed (0) -
src/internal/types/testdata/fixedbugs/issue51525.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 17 19:54:25 UTC 2023 - 511 bytes - Viewed (0) -
src/net/http/http.go
import ( "io" "strconv" "strings" "time" "unicode/utf8" "golang.org/x/net/http/httpguts" ) // incomparable is a zero-width, non-comparable type. Adding it to a struct // makes that struct also non-comparable, and generally doesn't add // any size (as long as it's first). type incomparable [0]func() // maxInt64 is the effective "infinite" value for the Server and // Transport's byte-limiting readers.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 10 03:29:50 UTC 2024 - 5.1K bytes - Viewed (0) -
src/cmd/compile/internal/types/alg.go
return AlgType(t) == ANOALG } // IsComparable reports whether t is a comparable type. func IsComparable(t *Type) bool { a := AlgType(t) return a != ANOEQ && a != ANOALG } // IncomparableField returns an incomparable Field of struct Type t, if any. func IncomparableField(t *Type) *Field { for _, f := range t.Fields() { if !IsComparable(f.Type) { return f } } return nil }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 18 15:30:00 UTC 2024 - 2.4K bytes - Viewed (0) -
src/crypto/internal/edwards25519/edwards25519.go
type Point struct { // Make the type not comparable (i.e. used with == or as a map key), as // equivalent points can be represented by different Go values. _ incomparable // The point is internally represented in extended coordinates (X, Y, Z, T) // where x = X/Z, y = Y/Z, and xy = T/Z per https://eprint.iacr.org/2008/522. x, y, z, t field.Element } type incomparable [0]func() func checkInitialized(points ...*Point) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 13 19:21:54 UTC 2023 - 10.3K bytes - Viewed (0) -
src/go/types/predicates.go
} // Comparable reports whether values of type T are comparable. func Comparable(T Type) bool { return comparable(T, true, nil, nil) } // If dynamic is set, non-type parameter interfaces are always comparable. // If reportf != nil, it may be used to report why T is not comparable.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:01:18 UTC 2024 - 17.6K bytes - Viewed (0) -
src/cmd/compile/internal/types2/predicates.go
} // Comparable reports whether values of type T are comparable. func Comparable(T Type) bool { return comparable(T, true, nil, nil) } // If dynamic is set, non-type parameter interfaces are always comparable. // If reportf != nil, it may be used to report why T is not comparable.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:01:18 UTC 2024 - 17.5K bytes - Viewed (0) -
src/cmd/compile/internal/typecheck/stmt.go
} else if t.IsInterface() && !n1.Type().IsInterface() && !types.IsComparable(n1.Type()) { base.ErrorfAt(ncase.Pos(), errors.UndefinedOp, "invalid case %L in switch (incomparable type)", n1) } else { op1, _ := assignOp(n1.Type(), t) op2, _ := assignOp(t, n1.Type()) if op1 == ir.OXXX && op2 == ir.OXXX { if n.Tag != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Nov 20 15:10:54 UTC 2023 - 17.8K bytes - Viewed (0)