Преглед на файлове

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

git-svn-id: trunk@36090 -
svenbarth преди 8 години
родител
ревизия
4a2266ac44
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      compiler/nld.pas

+ 1 - 1
compiler/nld.pas

@@ -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;