summaryrefslogtreecommitdiff
path: root/test/arraylit.myr
diff options
context:
space:
mode:
Diffstat (limited to 'test/arraylit.myr')
-rw-r--r--test/arraylit.myr6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/arraylit.myr b/test/arraylit.myr
index e37e772..93a90ee 100644
--- a/test/arraylit.myr
+++ b/test/arraylit.myr
@@ -2,6 +2,10 @@ use std
/* checks we can make indexed array literals. exits with 3. */
const main = {
- var a = [0: 1, 2: 3, 1: 2]
+ var a = [
+ .[0] = 1,
+ .[2] = 3,
+ .[1] = 2,
+ ]
std.exit(a[2])
}