Skip to content

Commit a53d448

Browse files
authored
Update lib/elixir/test/elixir/module/types/descr_test.exs
1 parent ae48087 commit a53d448

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/elixir/test/elixir/module/types/descr_test.exs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,8 @@ defmodule Module.Types.DescrTest do
675675
assert subtype?(fun([none(), number()], atom()), f)
676676
assert subtype?(fun([tuple(), number()], atom()), f)
677677

678-
# (none, float)->atom is not a subtype of (none, integer)->atom because float has an empty intersection with integer
678+
# (none, float -> atom) is not a subtype of (none, integer -> atom)
679+
# because float has an empty intersection with integer.
679680
# it's only possible to find this out by doing the
680681
# intersection one by one.
681682
refute subtype?(fun([none(), float()], atom()), f)

0 commit comments

Comments
 (0)