* tarrayconstructornode.pass_typecheck: set elementdef of the arraydef only after the arrayoptions are changed

git-svn-id: trunk@36090 -
This commit is contained in:
svenbarth 2017-05-04 21:03:33 +00:00
parent 5f8135dd84
commit 4a2266ac44

View File

@ -1070,10 +1070,10 @@ implementation
is_open_array(hdef) then
hdef:=voidtype;
resultdef:=carraydef.create(0,len-1,s32inttype);
tarraydef(resultdef).elementdef:=hdef;
include(tarraydef(resultdef).arrayoptions,ado_IsConstructor);
if varia then
include(tarraydef(resultdef).arrayoptions,ado_IsVariant);
tarraydef(resultdef).elementdef:=hdef;
end;