]> Cypherpunks repositories - gostls13.git/commitdiff
fix export bug Rob tripped over.
authorRuss Cox <rsc@golang.org>
Tue, 10 Feb 2009 21:57:31 +0000 (13:57 -0800)
committerRuss Cox <rsc@golang.org>
Tue, 10 Feb 2009 21:57:31 +0000 (13:57 -0800)
the lexer is already hiding names,
so this clumsy hack is no longer necessary.

R=ken
OCL=24783
CL=24783

src/cmd/gc/export.c

index ee1ce40da46dc35c89ef0097c97594ec38a53aaa..7697e3037f74dec8b739e1abbd3bbf1565b2b553 100644 (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);
 }