Commit 96da920f authored by Russ Cox's avatar Russ Cox

fix bug:

	type T struct
	export type T struct { a int }

was not exporting T

R=ken
OCL=16650
CL=16650
parent eb452f4b
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment