diff --git a/compiler/ptype.pas b/compiler/ptype.pas index 96a6c0af4e..916349316c 100644 --- a/compiler/ptype.pas +++ b/compiler/ptype.pas @@ -467,6 +467,7 @@ implementation structdef : tdef; structdefstack : tfpobjectlist; begin + def:=nil; { use of current parsed object: classes, objects, records can be used also in themself } structdef:=basedef;