Skip to content

Commit e557b10

Browse files
authored
Remove dot hint when the issue is a missing key in a map (#13519)
1 parent 017481d commit e557b10

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

lib/elixir/lib/module/types/of.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ defmodule Module.Types.Of do
518518
#{to_quoted_string(type)}
519519
""",
520520
traces,
521-
format_hints([:dot | trace_hints]),
521+
format_hints(trace_hints),
522522
"\ntyping violation found at:"
523523
]
524524
end

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,8 +260,6 @@ defmodule Module.Types.ExprTest do
260260
261261
%Point{x: nil, y: nil, z: integer()}
262262
263-
#{hints(:dot)}
264-
265263
typing violation found at:\
266264
"""}
267265
end

0 commit comments

Comments
 (0)