Concatenating Dynamic Arrays causes Runtime error
Issue #217
resolved
Hello,
I have discovered a problem when concatenating dynamic arrays (especially Variant ones), when the first element is a constant array. If my memory is correct, this used to work fine before the dynamic array refactoring took place last year. It is minor, because it can be easily work-arounded by using the Insert() pseudo method instead. Failing test is attached.
Best regards,
Joe
Comments (3)
-
repo owner -
reporter A compile error is perfectly fine. Thank you.
-
repo owner - changed status to resolved
Fixed Issue
#217imrpoved support dynamic array concatenation + tests→ <<cset 144c9d0c21ae>>
- Log in to comment
There is a bug in CompilerUtils.ArrayConcat where rightTyp is erroneously left.Typ, once that’s fixed there is compilation error for mismatched type (as expected since there is currently no facility for concatenating a variant array to a string array).
I will see about adding a few basic autocasts (basic types → variant, and integer → float at least).