aboutsummaryrefslogtreecommitdiffstats
path: root/lib/dialyzer/test/small_SUITE_data/results
diff options
context:
space:
mode:
authorStavros Aronis <[email protected]>2012-12-07 18:53:18 +0100
committerStavros Aronis <[email protected]>2012-12-20 14:09:33 +0100
commit0e37e993c477dfab0e7218b8246bf94b7a9b97a1 (patch)
treefd5cc0c5a532fac57d367f9cbd0f66830f921c83 /lib/dialyzer/test/small_SUITE_data/results
parentaf68f5a22f995284b07ece178c42e630ecf94d54 (diff)
downloadotp-0e37e993c477dfab0e7218b8246bf94b7a9b97a1.tar.gz
otp-0e37e993c477dfab0e7218b8246bf94b7a9b97a1.tar.bz2
otp-0e37e993c477dfab0e7218b8246bf94b7a9b97a1.zip
Report spec discrepancy on mismatching lists
This patch enables Dialyzer to detect cases where a function has a specification for a return type containing some list with elements different than the ones Dialyzer's own algorithm can infer e.g. a function specified to return [atom()] when actually [[atom()]] is returned. Previously Dialyzer remained silent, under normal operation, seeing that these two types have the empty list as a common element, so they were not 'completely irrelevant'.
Diffstat (limited to 'lib/dialyzer/test/small_SUITE_data/results')
-rw-r--r--lib/dialyzer/test/small_SUITE_data/results/empty_list_infimum2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/dialyzer/test/small_SUITE_data/results/empty_list_infimum b/lib/dialyzer/test/small_SUITE_data/results/empty_list_infimum
new file mode 100644
index 0000000000..a59986cba5
--- /dev/null
+++ b/lib/dialyzer/test/small_SUITE_data/results/empty_list_infimum
@@ -0,0 +1,2 @@
+
+empty_list_infimum.erl:39: Invalid type specification for function empty_list_infimum:list_vhost_permissions/1. The success typing is (_) -> [[{_,_}]]