Skip to content

Commit 51266a5

Browse files
authored
Merge pull request #569 from dvic/fix/call-without-opaque-otp28-issue-561
Fix CallWithoutOpaque function clause error on OTP-28
2 parents bf06a92 + c564806 commit 51266a5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/dialyxir/warnings/call_without_opaque.ex

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,11 @@ defmodule Dialyxir.Warnings.CallWithoutOpaque do
5151
"""
5252
end
5353

54+
# OTP 28+ format (5 arguments)
55+
def format_long([module, function, args, expected_triples, _additional_type_info]) do
56+
format_long([module, function, args, expected_triples])
57+
end
58+
5459
# We know which positions N are to blame;
5560
# the list of triples will never be empty.
5661
defp form_expected_without_opaque([{position, type, type_string}]) do

0 commit comments

Comments
 (0)