Closed lochana-chathura closed 1 month ago
We already support array lengths that are constants
This is caused by an integer overflow here. But in general I think this indicate fixed length must be a long
not an int
to have the same behavior as nBallerina. Will send a fix
After an offline chat we decided not support this and instead give a proper error for such overflow. This is because our lists are internally backed by java arrays and their indices have an upper limit enforced by int
not long
. Note this is consistent with the existing behavior of jBallerina
Closing with #42701
Description
$subject. The following tests fail at the moment. It is included in the fixed-length-array-large-t.bal added by PR #42663.