go/types/typeutil: don't use importer.ForCompiler yet
ForCompiler was added in Go 1.12, but we want to support Go 1.11, too.
@@ -63,7 +63,7 @@ func noncalls() {
Uses: make(map[*ast.Ident]types.Object),
Selections: make(map[*ast.SelectorExpr]*types.Selection),
}
- cfg := &types.Config{Importer: importer.ForCompiler(fset, "source", nil)}
+ cfg := &types.Config{Importer: importer.For("source", nil)}
if _, err := cfg.Check("p", fset, []*ast.File{f}, info); err != nil {
t.Fatal(err)
}
