Closed borkdude closed 8 months ago
It should probably work like this:
user=> (ns foo (:refer-clojure :exclude [cat]))
nil
foo=> (deftype cat [])
foo.cat
foo=> foo.cat
foo.cat
foo=> (ns bar (:refer-clojure :exclude [cat]) (:import [foo cat]))
nil
bar=> cat
foo.cat
bar=>
refer-clojure
now works, but I think both SCI and nbb should emit a warning here as well.
ClojureScript:
ClojureScript 1.10.866
cljs.user=> (ns foo.baz (:require [goog.object :refer [get]]))
nil
foo.baz=> foo.baz=>
foo.baz=>
foo.baz=> get
#object[Function]
foo.baz=> (get #js{:a 1} "a")
1
Most recent repro:
(ns bar (:require ["fs" :refer [existsSync] :rename {xexists? exists?}])) (exists? 1)
We should support
:refer-clojure :exclude [cat]
in this case or else give an error.