type T struct
	export type T struct { a int }

was not exporting T

R=ken
OCL=16650
CL=16650
This commit is contained in:
Russ Cox 2008-10-07 12:42:57 -07:00
parent eb452f4b6e
commit 96da920f1a

View File

@ -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);