I had accidentally written a comment in the code next to warn-on-infer indicating that it has global scope.
fixed https://github.com/clojure/clojurescript/commit/3037f04cdc7d8cc977842e9f129ef9f3aee70796
I had accidentally written a comment in the code next to warn-on-infer indicating that it has global scope.