Exception raised when writing to 0 element of empty dynarray
Issue #252
resolved
var crafts : array of array [0..19] of Integer;
begin
crafts[0] := [$711E1F88, $711E039F, $0DBF, $0DD6, $099F, $0F7A, $097A];
End.
Exception in dwsCompilerUtils.pas line 820.
EAssertionFailed with message 'Mismatched element size at [line: 3, column: 71]
Repeated on last commit as well.
Comments (3)
-
reporter -
repo owner - changed status to resolved
Fixed Issue
#252assertion failure when assigning an invalid expression to an indexed array item + test case→ <<cset 40f2b1d819b2>>
-
repo owner Yep, compiler was actually detecting the issue, but kept trying to compile a little too hard
- Log in to comment
P.S. I know that this example has error (even 2), but this lines cuted from real script, and it should not raise error like this, users became in panic :)