aboutsummaryrefslogtreecommitdiffstats
path: root/lib/dialyzer/src/dialyzer_contracts.erl
diff options
context:
space:
mode:
authorStavros Aronis <[email protected]>2011-10-03 13:24:40 +0200
committerStavros Aronis <[email protected]>2011-10-14 19:20:51 +0300
commit7892a31a03505e793a96a9956f0df14c7e14efb5 (patch)
tree05a99d84dfe20c7088ff5a41580029341a9b1ee4 /lib/dialyzer/src/dialyzer_contracts.erl
parent6ca6dd3c670fb8185ebb9a20c2a731a7375c1cac (diff)
downloadotp-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.erl2
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) ->