diff options
author | Stavros Aronis <[email protected]> | 2011-10-03 13:24:40 +0200 |
---|---|---|
committer | Stavros Aronis <[email protected]> | 2011-10-14 19:20:51 +0300 |
commit | 7892a31a03505e793a96a9956f0df14c7e14efb5 (patch) | |
tree | 05a99d84dfe20c7088ff5a41580029341a9b1ee4 /lib/dialyzer/src/dialyzer_contracts.erl | |
parent | 6ca6dd3c670fb8185ebb9a20c2a731a7375c1cac (diff) | |
download | otp-7892a31a03505e793a96a9956f0df14c7e14efb5.tar.gz otp-7892a31a03505e793a96a9956f0df14c7e14efb5.tar.bz2 otp-7892a31a03505e793a96a9956f0df14c7e14efb5.zip |
Change category of 'might also return' warnings
Dialyzer emits warnings like the following "The specification for _
states that the function might also return _ but the inferred return
is _", which are actually underspecifications and not wrong type
specifications. This patch makes sure that they are filed under the
appropriate category.
Diffstat (limited to 'lib/dialyzer/src/dialyzer_contracts.erl')
-rw-r--r-- | lib/dialyzer/src/dialyzer_contracts.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dialyzer/src/dialyzer_contracts.erl b/lib/dialyzer/src/dialyzer_contracts.erl index bcdcf2685d..84b926a17a 100644 --- a/lib/dialyzer/src/dialyzer_contracts.erl +++ b/lib/dialyzer/src/dialyzer_contracts.erl @@ -480,7 +480,7 @@ invalid_contract_warning({M, F, A}, FileLine, SuccType, RecDict) -> extra_range_warning({M, F, A}, FileLine, ExtraRanges, STRange) -> ERangesStr = erl_types:t_to_string(ExtraRanges), STRangeStr = erl_types:t_to_string(STRange), - {?WARN_CONTRACT_TYPES, FileLine, + {?WARN_CONTRACT_SUPERTYPE, FileLine, {extra_range, [M, F, A, ERangesStr, STRangeStr]}}. picky_contract_check(CSig0, Sig0, MFA, FileLine, Contract, RecDict, Acc) -> |