Exception raised when writing to 0 element of empty dynarray

Issue #252 resolved
Alex Bespalov created an issue
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)

  1. Alex Bespalov reporter

    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 :)

  2. Eric Grange repo owner

    Yep, compiler was actually detecting the issue, but kept trying to compile a little too hard

  3. Log in to comment