*Problem:*
The CLJS compiler does not warn about unqualified calls to private functions in {{cljs.core}}.
*Repro:*
$ 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
1
*Expected:*
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