Skip to content

Commit 82a2a29

Browse files
anmonteirodnolen
authored andcommitted
CLJS-1716: No longer possible to use same alias for :require-macros and :require
1 parent 0d4439e commit 82a2a29

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/clojure/cljs/analyzer.cljc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2441,7 +2441,8 @@
24412441

24422442
(defn get-expander-ns [env ^String nstr]
24432443
;; first check for clojure.* -> cljs.* cases
2444-
(let [res (resolve-ns-alias env (symbol nstr))
2444+
(let [res (or (resolve-macro-ns-alias env (symbol nstr))
2445+
(resolve-ns-alias env (symbol nstr)))
24452446
nstr (if res (str res) nstr)]
24462447
(cond
24472448
#?@(:clj [(= "clojure.core" nstr) (find-ns 'cljs.core)]

0 commit comments

Comments
 (0)