* a classrefdef might also be created with a forwarddef, so handle that correctly

git-svn-id: trunk@46850 -
This commit is contained in:
svenbarth 2020-09-11 21:24:59 +00:00
parent af7008ee2f
commit d1521e8061

View File

@ -3901,7 +3901,7 @@ implementation
constructor tclassrefdef.create(def:tdef);
begin
while tobjectdef(def).is_unique_objpasdef do
while (def.typ=objectdef) and tobjectdef(def).is_unique_objpasdef do
def:=tobjectdef(def).childof;
inherited create(classrefdef,def);
if df_specialization in tstoreddef(def).defoptions then