- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for funcInst (0.21 sec)
-
src/go/types/expr.go
switch t := x.typ.(type) { case *Alias, *Named: if isGeneric(t) { what = "type" } case *Signature: if t.tparams != nil { if enableReverseTypeInference && T != nil { check.funcInst(T, x.Pos(), x, nil, true) return } what = "function" } } if what != "" { check.errorf(x.expr, WrongTypeArgCount, "cannot use generic %s %s without instantiation", what, x.expr)
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
switch t := x.typ.(type) { case *Alias, *Named: if isGeneric(t) { what = "type" } case *Signature: if t.tparams != nil { if enableReverseTypeInference && T != nil { check.funcInst(T, x.Pos(), x, nil, true) return } what = "function" } } if what != "" { check.errorf(x.expr, WrongTypeArgCount, "cannot use generic %s %s without instantiation", what, x.expr)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 02:09:54 UTC 2024 - 51.7K bytes - Viewed (0)