Skip to content

Commit cfd62ce

Browse files
committed
Propagate fields on difference only once, closes #15207
1 parent 447427a commit cfd62ce

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/elixir/lib/module/types/descr.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3104,7 +3104,7 @@ defmodule Module.Types.Descr do
31043104
tag == :closed and not found? and not is_optional_static(v2) ->
31053105
:disjoint
31063106

3107-
tag == :open and not found? ->
3107+
tag == :open and not found? and fields != [] ->
31083108
# In case the left-side is open, we will only be adding new keys
31093109
# to the open map, which makes future eliminations harder.
31103110
:none

0 commit comments

Comments
 (0)