-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Endless loop when collecting into a map #14311
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
This also hangs:
|
Seems to be when dispatching any protocol to
iex> Inspect.impl_for %{__struct__: nil}
Inspect
# should be: Inspect.Any |
We should fix so the concatenation returns |
I will push a fix since I want to ship a new v1.18 :) |
josevalim
added a commit
that referenced
this issue
Mar 6, 2025
josevalim
added a commit
that referenced
this issue
Mar 6, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Elixir and Erlang/OTP versions
Erlang/OTP 26 [erts-14.2.5.8] [source] [64-bit] [smp:12:12] [ds:12:12:10] [async-threads:1] [jit]
Elixir 1.18.2 (compiled with Erlang/OTP 26)
Operating system
macOS
Current behavior
This code hangs both in tests and iex
The same code does not hang for other atoms (
false
,true
) and valuesExpected behavior
No hang and
%{foo: nil, __struct__: nil}
returned orArgumentError
.The text was updated successfully, but these errors were encountered: