diff --git a/go/types/package.go b/go/types/package.go index 7090c17e..f09acc7f 100644 --- a/go/types/package.go +++ b/go/types/package.go @@ -50,5 +50,5 @@ func (pkg *Package) Imports() []*Package { return pkg.imports } func (pkg *Package) SetImports(list []*Package) { pkg.imports = list } func (pkg *Package) String() string { - return fmt.Sprintf("package %s (%s)", pkg.name, pkg.path) + return fmt.Sprintf("package %s (%q)", pkg.name, pkg.path) } diff --git a/go/types/resolver.go b/go/types/resolver.go index 18c9047f..3beea8a5 100644 --- a/go/types/resolver.go +++ b/go/types/resolver.go @@ -388,6 +388,7 @@ func (check *checker) resolveFiles(files []*ast.File) { check.objDecl(obj, nil, false) } } + check.objMap = nil // not needed anymore // At this point we may have a non-empty check.methods map; this means that not all // entries were deleted at the end of typeDecl because the respective receiver base