mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-13 09:59:25 +02:00
* tarrayconstructornode.pass_typecheck: set elementdef of the arraydef only after the arrayoptions are changed
git-svn-id: trunk@36090 -
This commit is contained in:
parent
5f8135dd84
commit
4a2266ac44
@ -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;
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user