Skip to content

Commit a91025a

Browse files
committed
* test-local
1 parent cf2d7fc commit a91025a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/test/clojure/cljs/analyzer/spec_tests.clj

+7-1
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,13 @@
166166

167167
;; list, no longer needed, subsumed by :quote
168168

169-
;; local
169+
(deftest test-local
170+
(let [node (analyze ns-env '(fn [x] x))
171+
fn-method (-> node :methods first)
172+
body (-> fn-method :body)
173+
ret (:ret body)]
174+
(is (= :local (:op ret)))
175+
(is (s/valid? ::a/node node))))
170176

171177
(deftest test-loop
172178
(let [node (analyze ns-env '(loop []))]

0 commit comments

Comments
 (0)