Reviewed the spec, fixed some bugs

This commit is contained in:
2022-09-10 14:11:13 +01:00
parent d3c085c300
commit a7ca6d23d7
6 changed files with 160 additions and 65 deletions

View File

@@ -1,11 +1,6 @@
//test nested indexing
{
var a = [[[0]]];
a[0][0][0] = 42;
print a;
assert a[0][0] == [42], "nested indexing failed";
fn omitFirstInteger(arg1: int, ...rest) {
//rest comes in as an array of any
return rest;
}
print omitFirstInteger(1, 2, 3);