Use type warning instead of typing violation, closes #15065

This commit is contained in:
José Valim
2026-01-16 08:37:04 +01:00
parent 61d82a94f8
commit 8def030f38
4 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -184,7 +184,7 @@ format_snippet(Severity, Position, File, Message, Snippet, Diagnostic) ->
unicode:characters_to_binary(Formatted).
format_detail(#{details := #{typing_traces := _}}, Message) -> [Message | "\ntyping violation found at:"];
format_detail(#{details := #{typing_traces := _}}, Message) -> [Message | "\ntype warning found at:"];
format_detail(_, Message) -> Message.
calculate_span_length({StartLine, StartCol}, #{span := {StartLine, EndCol}}) -> EndCol - StartCol;