aboutsummaryrefslogtreecommitdiffstats
path: root/lib/dialyzer/test/small_SUITE_data
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2019-02-19 09:43:56 +0100
committerHans Bolinder <[email protected]>2019-02-19 09:43:56 +0100
commit579cc8e2b4ed9283c9c9422b928bbaa6996ff884 (patch)
tree681eddcce10e28f94661c304b7837d9115791fae /lib/dialyzer/test/small_SUITE_data
parent3551f44814abf7702f48389158410c09a71f3771 (diff)
parent0d0799b4971e3353943614a311502cd4dd7b3ec9 (diff)
downloadotp-579cc8e2b4ed9283c9c9422b928bbaa6996ff884.tar.gz
otp-579cc8e2b4ed9283c9c9422b928bbaa6996ff884.tar.bz2
otp-579cc8e2b4ed9283c9c9422b928bbaa6996ff884.zip
Merge branch 'hasse/dialyzer/fix_contract_check/OTP-15562/ERL-845' into maint
* hasse/dialyzer/fix_contract_check/OTP-15562/ERL-845: dialyzer: Fix a bug regarding contracts
Diffstat (limited to 'lib/dialyzer/test/small_SUITE_data')
-rw-r--r--lib/dialyzer/test/small_SUITE_data/results/spec_other_module2
-rw-r--r--lib/dialyzer/test/small_SUITE_data/src/spec_other_module.erl7
2 files changed, 9 insertions, 0 deletions
diff --git a/lib/dialyzer/test/small_SUITE_data/results/spec_other_module b/lib/dialyzer/test/small_SUITE_data/results/spec_other_module
new file mode 100644
index 0000000000..ab2e35cf55
--- /dev/null
+++ b/lib/dialyzer/test/small_SUITE_data/results/spec_other_module
@@ -0,0 +1,2 @@
+
+spec_other_module.erl:7: Contract for function that does not exist: lists:flatten/1
diff --git a/lib/dialyzer/test/small_SUITE_data/src/spec_other_module.erl b/lib/dialyzer/test/small_SUITE_data/src/spec_other_module.erl
new file mode 100644
index 0000000000..b36742b1bd
--- /dev/null
+++ b/lib/dialyzer/test/small_SUITE_data/src/spec_other_module.erl
@@ -0,0 +1,7 @@
+-module(spec_other_module).
+
+%% OTP-15562 and ERL-845. Example provided by Kostis.
+
+-type deep_list(A) :: [A | deep_list(A)].
+
+-spec lists:flatten(deep_list(A)) -> [A].