- Sort Score
- Result 10 results
- Languages All
Results 51 - 55 of 55 for TypeParam (0.38 sec)
-
src/cmd/compile/internal/types2/builtins.go
// applyTypeFunc returns nil. // If x is not a type parameter, the result is f(x). func (check *Checker) applyTypeFunc(f func(Type) Type, x *operand, id builtinId) Type { if tp, _ := Unalias(x.typ).(*TypeParam); tp != nil { // Test if t satisfies the requirements for the argument // type and collect possible result types at the same time. var terms []*Term if !tp.is(func(t *term) bool { if t == nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 27.1K bytes - Viewed (0) -
src/cmd/compile/internal/types2/call.go
err.addf(nopos, "want %s", check.typesSummary(varTypes(params), sig.variadic)) err.report() return } // collect type parameters of callee and generic function arguments var tparams []*TypeParam // collect type parameters of callee n := sig.TypeParams().Len() if n > 0 { if !check.allowVersion(call.Pos(), go1_18) { if iexpr, _ := call.Fun.(*syntax.IndexExpr); iexpr != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 31.5K bytes - Viewed (0) -
src/go/types/call.go
err.addf(noposn, "want %s", check.typesSummary(varTypes(params), sig.variadic)) err.report() return } // collect type parameters of callee and generic function arguments var tparams []*TypeParam // collect type parameters of callee n := sig.TypeParams().Len() if n > 0 { if !check.allowVersion(call, go1_18) { switch call.Fun.(type) { case *ast.IndexExpr, *ast.IndexListExpr:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 33.5K bytes - Viewed (0) -
src/go/types/expr.go
// If typ is a type parameter, underIs returns the result of typ.underIs(f). // Otherwise, underIs returns the result of f(under(typ)). func underIs(typ Type, f func(Type) bool) bool { typ = Unalias(typ) if tpar, _ := typ.(*TypeParam); tpar != nil { return tpar.underIs(f) } return f(under(typ)) } // The unary expression e may be nil. It's passed in for better error messages only.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 02:09:54 UTC 2024 - 49.7K bytes - Viewed (0) -
src/cmd/compile/internal/types2/expr.go
// If typ is a type parameter, underIs returns the result of typ.underIs(f). // Otherwise, underIs returns the result of f(under(typ)). func underIs(typ Type, f func(Type) bool) bool { typ = Unalias(typ) if tpar, _ := typ.(*TypeParam); tpar != nil { return tpar.underIs(f) } return f(under(typ)) } func (check *Checker) unary(x *operand, e *syntax.Operation) { check.expr(nil, x, e.X) if x.mode == invalid { return }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 02:09:54 UTC 2024 - 51.7K bytes - Viewed (0)