You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original reporter: wojtekmach
Affected version: Not Specified
Fixed in version: OTP-22.2.7
Component: Not Specified
Migrated from: https://bugs.erlang.org/browse/ERL-1163
This code:
{code:erlang}
-module(foo).
-compile(export_all).
dup(Map) ->
case Map of
#{'__struct__' := _} ->
case Map of
#{'__struct__' := _} ->
ok;
O1 ->
O1
end;
O2 ->
O2
end.
{code}
causes this internal consistency check failure:
{code:erlang}
foo: function dup/1+5:
Internal consistency check failed - please report this bug.
Instruction: {test,has_map_fields,
{f,3},
{x,0},
{list,[{atom,'__struct__'},{atom,'__struct__'}]}}
Error: keys_not_unique:
foo.erl:2: Warning: export_all flag enabled - all functions will be exported
{code}
I'm on:
{code}
~% erl
Erlang/OTP 22 [erts-10.5.6] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [hipe]
Eshell V10.5.6 (abort with ^G)
{code}
Original issue: [https://github.com/elixir-lang/elixir/issues/9801]
The text was updated successfully, but these errors were encountered:
Original reporter:
wojtekmach
Affected version:
Not Specified
Fixed in version:
OTP-22.2.7
Component:
Not Specified
Migrated from: https://bugs.erlang.org/browse/ERL-1163
The text was updated successfully, but these errors were encountered: