Browse Source

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

git-svn-id: trunk@36090 -
svenbarth 8 years ago
parent
commit
4a2266ac44
1 changed files with 1 additions and 1 deletions
  1. 1 1
      compiler/nld.pas

+ 1 - 1
compiler/nld.pas

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