Skip to content

Commit

Permalink
Fix matching of invalid_contract args. (#541)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyjh authored Sep 24, 2024
1 parent 4d76fe9 commit b69c5d8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/dialyxir/warnings/invalid_contract.ex
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ defmodule Dialyxir.Warnings.InvalidContract do
@impl Dialyxir.Warning
@spec format_long([String.t()]) :: String.t()
def format_long([module, function, arity, signature]) do
format_long([module, function, arity, nil, signature])
end

def format_long([module, function, arity, _args, signature | _]) do
pretty_module = Erlex.pretty_print(module)
pretty_signature = Erlex.pretty_print_contract(signature)

Expand Down

0 comments on commit b69c5d8

Please sign in to comment.