return check.typExpr(e, nil, nil)
}
-// funcType type-checks a function or method type and returns its signature.
-func (check *Checker) funcType(sig *Signature, recvPar *ast.FieldList, ftyp *ast.FuncType) *Signature {
+// funcType type-checks a function or method type.
+func (check *Checker) funcType(sig *Signature, recvPar *ast.FieldList, ftyp *ast.FuncType) {
scope := NewScope(check.scope, "function")
check.recordScope(ftyp, scope)
sig.params = NewTuple(params...)
sig.results = NewTuple(results...)
sig.variadic = variadic
-
- return sig
}
// typExprInternal drives type checking of types.