ClojureScript

Private var use not detected in multi-arity defn

Details

  • Type: Defect Defect
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • 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=>

Activity

There are no comments yet on this issue.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated: