1
0
mirror of https://github.com/golang/go synced 2024-11-12 06:30:21 -07:00

fix export bug Rob tripped over.

the lexer is already hiding names,
so this clumsy hack is no longer necessary.

R=ken
OCL=24783
CL=24783
This commit is contained in:
Russ Cox 2009-02-10 13:57:31 -08:00
parent 00b3d48f13
commit 73dd4a37f9

View File

@ -410,14 +410,6 @@ importtype(Node *ss, Type *t)
s->otype->sym = s;
checkwidth(s->otype);
// If type name should not be visible to importers,
// hide it by setting the lexical type to name.
// This will make references in the ordinary program
// (but not the import sections) look at s->oname,
// which is nil, as for an undefined name.
if(s->export == 2 && !mypackage(ss))
s->lexical = LNAME;
if(debug['e'])
print("import type %S %lT\n", s, t);
}