Skip to content

Commit bc9c1d2

Browse files
committed
Break elixir_expand clauses into warnable bits
1 parent c28b596 commit bc9c1d2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/elixir/src/elixir_expand.erl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,12 @@ expand({Name, Meta, Kind}, S, E) when is_atom(Name), is_atom(Kind) ->
337337
case Prematch of
338338
{bitsize, Pre, Original} ->
339339
if
340-
is_map_key(Pair, Pre); not is_map_key(Pair, Original) -> {ok, CurrentVersion};
340+
map_get(Pair, Pre) /= CurrentVersion ->
341+
{ok, CurrentVersion};
342+
is_map_key(Pair, Pre) ->
343+
{ok, CurrentVersion};
344+
not is_map_key(Pair, Original) ->
345+
{ok, CurrentVersion};
341346
true -> raise
342347
end;
343348

0 commit comments

Comments
 (0)