diff options
Diffstat (limited to 'libgo/go/exp/types')
-rw-r--r-- | libgo/go/exp/types/gcimporter.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libgo/go/exp/types/gcimporter.go b/libgo/go/exp/types/gcimporter.go index fe90f91..e744a63 100644 --- a/libgo/go/exp/types/gcimporter.go +++ b/libgo/go/exp/types/gcimporter.go @@ -289,9 +289,10 @@ func (p *gcParser) parseExportedName() (*ast.Object, string) { // BasicType = identifier . // func (p *gcParser) parseBasicType() Type { - obj := Universe.Lookup(p.expect(scanner.Ident)) + id := p.expect(scanner.Ident) + obj := Universe.Lookup(id) if obj == nil || obj.Kind != ast.Typ { - p.errorf("not a basic type: %s", obj.Name) + p.errorf("not a basic type: %s", id) } return obj.Type.(Type) } |