Type check built-in functions more thoroughly

This commit is contained in:
Nigel Tao committed 2017-12-16 13:25:26 +11:00
1 parent 4877279ee7
commit d14b56ea39
15 files changed
+291 -163

No files matched your search

+1 -1
View File
@@ -961,7 +961,7 @@ func (q *checker) bcheckExprCall(n *a.Expr, depth uint32) error {
//
// TODO: bcheck the receiver, e.g. ptr vs nptr.
lhs := n.LHS().Expr()
f, err := q.resolveFunc(lhs.MType())
f, err := q.c.resolveFunc(lhs.MType())
if err != nil {
return err
}