Welcome! Please see the About page for a little more info on how this works.

0 votes
in ClojureScript by

The CLJS compiler does not warn about unqualified calls to private functions in {{cljs.core}}.


$ mkdir -p src
$ echo '(maybe-warn 1)' > src/foo.cljs
$ deps='{:deps {org.clojure/clojurescript {:mvn/version "1.10.520"}}}'
$ clj -Srepro -Sdeps "$deps" -m cljs.main -re node -i src/foo.cljs


A warning about calling the private function {{maybe-warn}} from {{cljs.core}}.

Note that it does work when you fully qualify the call. E.g.:

$ echo '(cljs.core/maybe-warn 1)' > src/foo.cljs
$ clj -Srepro -Sdeps "$deps" -m cljs.main -re node -i src/foo.cljs
WARNING: var: cljs.core/maybe-warn is not public at line 1 foo.cljs

1 Answer

0 votes
Reference: https://clojure.atlassian.net/browse/CLJS-3069 (reported by borkdude)