Skip to content

Commit

Permalink
Merge pull request #2828 from kivra-pauoli/fix/dialyzer-output-for-otp26
Browse files Browse the repository at this point in the history
Add (newer) Dialyzer info. about `invalid_contract`
  • Loading branch information
ferd authored Sep 11, 2023
2 parents 393c7cb + 6edcc2d commit 436815e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apps/rebar/src/rebar_dialyzer_format.erl
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,10 @@ message_to_string({contract_range, [Contract, M, F, ArgStrings, Line, CRet]}) ->
message_to_string({invalid_contract, [M, F, A, Sig]}) ->
fmt("~!^Invalid type specification for function~!! ~w:~w/~w."
"~!^ The success typing is~!! ~ts", [M, F, A, Sig]);
message_to_string({invalid_contract, [M, F, A, _InvalidContractDetails, Contract, Sig]}) ->
fmt("~!^Invalid type specification for function~!! ~w:~w/~w."
"~!^ The success typing is~!! ~ts"
"~!^ but the spec is~!! ~ts", [M, F, A, Sig, Contract]);
message_to_string({contract_with_opaque, [M, F, A, OpaqueType, SigType]}) ->
fmt("~!^The specification for ~!!~w:~w/~w~!^ has an opaque"
" subtype ~!!~ts~!^ which is violated by the success typing ~!!~ts",
Expand Down

0 comments on commit 436815e

Please sign in to comment.