aboutsummaryrefslogtreecommitdiffstats
path: root/lib/dialyzer/test/opaque_SUITE_data
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/test/opaque_SUITE_data
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/test/opaque_SUITE_data')
-rw-r--r--lib/dialyzer/test/opaque_SUITE_data/results/crash1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/dialyzer/test/opaque_SUITE_data/results/crash b/lib/dialyzer/test/opaque_SUITE_data/results/crash
index 6bdd934169..1ddae5149f 100644
--- a/lib/dialyzer/test/opaque_SUITE_data/results/crash
+++ b/lib/dialyzer/test/opaque_SUITE_data/results/crash
@@ -1,5 +1,4 @@
-crash_1.erl:42: The specification for crash_1:empty/0 states that the function might also return crash_1:targetlist() but the inferred return is none()
crash_1.erl:45: Record construction #targetlist{list::[]} violates the declared type of field list::'undefined' | crash_1:target()
crash_1.erl:48: The call crash_1:get_using_branch2(Branch::maybe_improper_list(),L::'undefined' | crash_1:target()) contains an opaque term as 2nd argument when terms of different types are expected in these positions
crash_1.erl:50: The pattern <_Branch, []> can never match the type <maybe_improper_list(),'undefined' | crash_1:target()>