KCL: Refactor array-indexing code (#4173)
Neater code, and better error messages.
This commit is contained in:
@ -108,7 +108,7 @@ gen_test_fail!(
|
||||
);
|
||||
gen_test_fail!(
|
||||
invalid_index_negative,
|
||||
"semantic: i's value is not a valid property/index, you can only use a string or int (>= 0) here"
|
||||
"semantic: '-1' is not a valid index, indices must be whole positive numbers"
|
||||
);
|
||||
gen_test_fail!(
|
||||
invalid_index_fractional,
|
||||
|
||||
Reference in New Issue
Block a user