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
@@ -125,7 +125,7 @@ func do(r io.Reader, filename string) error {
}
// We don't need the AST node to pretty-print, but it's worth rejecting
// syntax errors early. This is just a parse, not a full type check.
if _, err := parse.Parse(tm, filename, tokens); err != nil {
if _, err := parse.Parse(tm, filename, tokens, nil); err != nil {
return err
}
buf := &bytes.Buffer{}