mirror of https://github.com/golang/go.git
fix bug:
type T struct
export type T struct { a int }
was not exporting T
R=ken
OCL=16650
CL=16650
This commit is contained in:
parent
eb452f4b6e
commit
96da920f1a
|
|
@ -62,12 +62,15 @@ dodcltype(Type *n)
|
|||
switch(s->otype->etype) {
|
||||
case TFORWSTRUCT:
|
||||
case TFORWINTER:
|
||||
return s->otype;
|
||||
n = s->otype;
|
||||
goto found;
|
||||
}
|
||||
}
|
||||
|
||||
// otherwise declare a new type
|
||||
addtyp(n, dclcontext);
|
||||
|
||||
found:
|
||||
n->sym->local = 1;
|
||||
if(exportadj)
|
||||
exportsym(n->sym);
|
||||
|
|
|
|||
Loading…
Reference in New Issue