IO.warn doesn't stop compiler with --warning-as-errors

Yeah.. I don’t get this, I tried a lot of different warnings and projects, I also tried with Elixir 1.18 and I still can’t make --warnings-as-errors work at all.

I’m just not sure if this is actually a bug or just something else that I’m missing because I’m confident that if it was really not working for everyone, then this would be already reported tbh.

Does this option works for you guys? If so, do you mind giving me a code snippet that generates a warning that should be triggered as an error when using this option for me to try it?