diff --git a/src/test/clojure/cljs/analyzer/spec_tests.clj b/src/test/clojure/cljs/analyzer/spec_tests.clj index c47fff5fb..b59c5022f 100644 --- a/src/test/clojure/cljs/analyzer/spec_tests.clj +++ b/src/test/clojure/cljs/analyzer/spec_tests.clj @@ -166,7 +166,13 @@ ;; list, no longer needed, subsumed by :quote -;; local +(deftest test-local + (let [node (analyze ns-env '(fn [x] x)) + fn-method (-> node :methods first) + body (-> fn-method :body) + ret (:ret body)] + (is (= :local (:op ret))) + (is (s/valid? ::a/node node)))) (deftest test-loop (let [node (analyze ns-env '(loop []))]