- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for isNonTypeParamInterface (0.33 sec)
-
src/go/types/assignments.go
if T == nil { check.errorf(x, UntypedNilUse, "use of untyped nil in %s", context) x.mode = invalid return } } else if T == nil || isNonTypeParamInterface(T) { target = Default(x.typ) } } else { // go/types if T == nil || isNonTypeParamInterface(T) { if T == nil && x.typ == Typ[UntypedNil] { check.errorf(x, UntypedNilUse, "use of untyped nil in %s", context) x.mode = invalid return
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 18:48:38 UTC 2024 - 16.4K bytes - Viewed (0) -
src/cmd/compile/internal/types2/predicates.go
} // IsInterface reports whether t is an interface type. func IsInterface(t Type) bool { _, ok := under(t).(*Interface) return ok } // isNonTypeParamInterface reports whether t is an interface type but not a type parameter. func isNonTypeParamInterface(t Type) bool { return !isTypeParam(t) && IsInterface(t) } // isTypeParam reports whether t is a type parameter. func isTypeParam(t Type) bool {
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/types2/assignments.go
if T == nil { check.errorf(x, UntypedNilUse, "use of untyped nil in %s", context) x.mode = invalid return } } else if T == nil || isNonTypeParamInterface(T) { target = Default(x.typ) } } else { // go/types if T == nil || isNonTypeParamInterface(T) { if T == nil && x.typ == Typ[UntypedNil] { check.errorf(x, UntypedNilUse, "use of untyped nil in %s", context) x.mode = invalid return
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 23 21:21:43 UTC 2024 - 16.4K bytes - Viewed (0) -
src/go/types/predicates.go
} // IsInterface reports whether t is an interface type. func IsInterface(t Type) bool { _, ok := under(t).(*Interface) return ok } // isNonTypeParamInterface reports whether t is an interface type but not a type parameter. func isNonTypeParamInterface(t Type) bool { return !isTypeParam(t) && IsInterface(t) } // isTypeParam reports whether t is a type parameter. func isTypeParam(t Type) bool {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:01:18 UTC 2024 - 17.6K bytes - Viewed (0)