From 1c76e857f8f40c46a9b08274a26a0cca7fb20c77 Mon Sep 17 00:00:00 2001 From: Garklein Date: Wed, 21 Jul 2021 11:27:09 -0400 Subject: [PATCH] additional test --- impls/tests/step9_try.mal | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/impls/tests/step9_try.mal b/impls/tests/step9_try.mal index 186a95811a..81de41e47b 100644 --- a/impls/tests/step9_try.mal +++ b/impls/tests/step9_try.mal @@ -396,3 +396,9 @@ ;=>:abc (keyword? (first (keys {":abc" 123 ":def" 456}))) ;=>false + +;; Testing that hashmaps don't alter function ast +(def! bar (fn* [a] {:foo (get a :foo)})) +(bar {:foo (fn* [x] x)}) +(bar {:foo 3}) +;; shouldn't give an error \ No newline at end of file