Resolve used packages during type checking

This commit is contained in:
Nigel Tao committed 2017-12-28 11:24:59 +11:00
1 parent 366a9388b3
commit 1255b162ea
5 files changed
+138 -35

No files matched your search

+2 -2
View File
@@ -111,7 +111,7 @@ func TestCheck(t *testing.T) {
t.Fatalf("compareToWuffsfmt: %v", err)
}
c, err := Check(tm, file)
c, err := Check(tm, []*ast.File{file}, nil)
if err != nil {
t.Fatalf("Check: %v", err)
}
@@ -208,7 +208,7 @@ func TestConstValues(t *testing.T) {
continue
}
c, err := Check(tm, file)
c, err := Check(tm, []*ast.File{file}, nil)
if err != nil {
t.Errorf("%q: Check: %v", s, err)
continue