We're updating the issue view to help you get more done. 

Private var use not detected in multi-arity defn

Description

Note that the last form in the repro below does not emit a diagnostic, while the previous does:

1 2 3 4 5 6 7 8 9 10 11 $ clj -Srepro -m cljs.main cljs.user=> (defn- foo []) #'cljs.user/foo cljs.user=> (ns bar.core) bar.core=> (defn baz ([] (cljs.user/foo))) WARNING: var: cljs.user/foo is not public at line 1 <cljs repl> #'bar.core/baz bar.core=> (defn quux ([] (cljs.user/foo)) ([x] (cljs.user/foo))) #'bar.core/quux bar.core=>

Environment

{:deps {org.clojure/clojurescript {:git/url "https://github.com/clojure/clojurescript" :sha "17b71461ee6304e3696e397add1f4780525553fc"}}}

Status

Assignee

Unassigned

Reporter

Mike Fikes

Labels

None

Approval

None

Patch

None

Priority

Major