aboutsummaryrefslogtreecommitdiffstats
path: root/test/scripts/hash-map1.milch
diff options
context:
space:
mode:
authorJan Tuomi <jans.tuomi@gmail.com>2022-12-11 01:37:40 +0200
committerJan Tuomi <jans.tuomi@gmail.com>2022-12-11 12:51:50 +0200
commitca75962a335a9954962b0213e060e3895ddc69fb (patch)
tree708407988db3bef5c3c0ddff20f106f39c43e496 /test/scripts/hash-map1.milch
parentd0614dd946baf05375172d7a50f5eb250b9a7b00 (diff)
Fix collection literal evaluation
Diffstat (limited to 'test/scripts/hash-map1.milch')
-rw-r--r--test/scripts/hash-map1.milch6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/scripts/hash-map1.milch b/test/scripts/hash-map1.milch
new file mode 100644
index 0000000..ed61ec0
--- /dev/null
+++ b/test/scripts/hash-map1.milch
@@ -0,0 +1,6 @@
+(let a "foo")
+
+(eq?
+ { a 1 :b 2 }
+ ; equivalent to
+ (hash-map [a 1 :b 2]))