|
@@ -150,7 +150,8 @@ end;
|
|
|
|
|
|
procedure TPasWriter.WriteType(AType: TPasType);
|
|
procedure TPasWriter.WriteType(AType: TPasType);
|
|
begin
|
|
begin
|
|
- PrepareDeclSection('type');
|
|
|
|
|
|
+ if AType.Parent is TPasSection then
|
|
|
|
+ PrepareDeclSection('type');
|
|
if AType.ClassType = TPasUnresolvedTypeRef then
|
|
if AType.ClassType = TPasUnresolvedTypeRef then
|
|
wrt(AType.Name)
|
|
wrt(AType.Name)
|
|
else if AType.ClassType = TPasClassType then
|
|
else if AType.ClassType = TPasClassType then
|