<< Back to previous view

[CLJS-2823] Private var use not detected in multi-arity defn Created: 15/Jul/18  Updated: 15/Jul/18

Status: Open
Project: ClojureScript
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Defect Priority: Major
Reporter: Mike Fikes Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Environment:

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



 Description   

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

$ 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=>

Generated at Sat Apr 20 01:38:50 CDT 2019 using JIRA 4.4#649-r158309.