We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 867a26b commit 7bf09f0Copy full SHA for 7bf09f0
src/test/clojure/cljs/analyzer/spec_tests.clj
@@ -208,7 +208,11 @@
208
(is (s/valid? ::a/node (no-warn (analyze ns-env '(String.)))))
209
(is (s/valid? ::a/node (analyze ns-env '(js/String.)))))
210
211
-;; no-op
+(deftest test-no-op
212
+ (let [node (binding [ana/*unchecked-if* true]
213
+ (no-warn (analyze ns-env '(set! *unchecked-if* false))))]
214
+ (is (= :no-op (:op node)))
215
+ (is (s/valid? ::a/node node))))
216
217
(deftest test-ns
218
(let [node (no-warn
src/test/clojure/cljs/analyzer/specs.cljc
@@ -220,7 +220,8 @@
220
:req-un [::class ::args])))
221
222
(defmethod node :no-op [_]
223
- ::base)
+ (s/keys
224
+ :req-un [::env ::op]))
225
226
(defmethod node :ns [_]
227
::base)
0 commit comments