Fix lang/check tests

This commit is contained in:
Nigel Tao committed 2017-12-28 11:04:31 +11:00
1 parent d92e90d4f0
commit 7fb19d7669
2 files changed
+4 -2

No files matched your search

+1 -1
View File
@@ -122,7 +122,7 @@ func parseBuiltInFuncs(tm *t.Map, ss []string, generic bool) (map[t.QID]*a.Func,
tlds := file.TopLevelDecls()
if len(tlds) != 1 || tlds[0].Kind() != a.KFunc {
return nil, fmt.Errorf("parsing %c: got %d top level decls, want %d", s, len(tlds), 1)
return nil, fmt.Errorf("check: parsing %q: got %d top level decls, want %d", s, len(tlds), 1)
}
f := tlds[0].Func()
m[f.QID()] = f