-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Elixir 1.19 inconsistent typing warning #14347
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thank you. We could address this warning but at the cost of preventing fewer bugs. For example, someone can pass a string or a decimal to this code, and it would return something, but that may not be valid. My suggestion then would be to explicit add a |
Closing as duplicate of #13227 for now. We may revisit to not emit this warning in the future. |
We got more reports, so we will tackle this. |
Closed by b27b911. |
Elixir and Erlang/OTP versions
Erlang/OTP 27 [erts-15.1.2] [source] [64-bit] [smp:10:10] [ds:10:10:10] [async-threads:1] [jit]
Elixir 1.19.0-dev (b601b1c) (compiled with Erlang/OTP 27)
Operating system
mac
Current behavior
I know 1.19 is not released yet so feel free to close this ticket.
I only got this warning when running
mix compile
, not withelixirc
. Both with 1.19-dev usingasdf install elixir main-otp-27
git repo which shows the problem https://github.com/nwjlyons/foo/blob/main/lib/foo.ex
comparison with structs warning
full compiler warning
no warning for
Expected behavior
To be consistent with the
if
expressions. So consistently no warnings or all warnings.The text was updated successfully, but these errors were encountered: