We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9bf0706 commit f7e87a5Copy full SHA for f7e87a5
src/main/clojure/cljs/analyzer.cljc
@@ -3954,8 +3954,11 @@
3954
:cljs [(identical? "clojure.repl" nstr) (find-macros-ns 'cljs.repl)])
3955
#?@(:clj [(.contains nstr ".") (find-ns (symbol nstr))]
3956
:cljs [(goog.string/contains nstr ".") (find-macros-ns (symbol nstr))])
3957
- :else (some-> env :ns :require-macros (get (symbol nstr)) #?(:clj find-ns
3958
- :cljs find-macros-ns)))))
+ :else
+ (or (some-> env :ns :require-macros (get (symbol nstr)) #?(:clj find-ns
3959
+ :cljs find-macros-ns))
3960
+ #?(:clj (find-ns (symbol nstr))
3961
+ :cljs (find-macros-ns (symbol nstr)))))))
3962
3963
(defn get-expander* [sym env]
3964
(when-not (or (some? (gets env :locals sym)) ; locals hide macros
0 commit comments