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