We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01a1427 commit fb16239Copy full SHA for fb16239
src/main/clojure/cljs/analyzer.cljc
@@ -1365,7 +1365,10 @@
1365
(let [env (if (or (and (not= ns-name 'cljs.core)
1366
(core-name? env sym))
1367
(some? (get-in @env/*compiler* [::namespaces ns-name :uses sym])))
1368
- (let [ev (resolve-existing-var (dissoc env :locals) (with-meta sym {::no-resolve true}))
+ (let [ev (resolve-existing-var (dissoc env :locals)
1369
+ ;; ::no-resolve true is to suppress "can't take value
1370
+ ;; of macro warning" when sym resolves to a macro
1371
+ (with-meta sym {::no-resolve true}))
1372
conj-to-set (fnil conj #{})]
1373
(when (public-name? (:ns ev) sym)
1374
(warning :redef env {:sym sym :ns (:ns ev) :ns-name ns-name}))
0 commit comments