I had accidentally written a comment in the code next to warn-on-infer indicating that it has global scope.
I had accidentally written a comment in the code next to warn-on-infer indicating that it has global scope.