aboutsummaryrefslogtreecommitdiffstats
path: root/lib/dialyzer/test
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2016-05-17 09:07:29 +0200
committerHans Bolinder <[email protected]>2016-06-09 11:28:00 +0200
commite44b4c47605cce574222e1bc579fb1d71dee064f (patch)
treea97cf040f4ffea0c3dbde7403c43e2c13adf5f54 /lib/dialyzer/test
parent13e0b9420276b71bdac89692f00dc20c3112bc1b (diff)
downloadotp-e44b4c47605cce574222e1bc579fb1d71dee064f.tar.gz
otp-e44b4c47605cce574222e1bc579fb1d71dee064f.tar.bz2
otp-e44b4c47605cce574222e1bc579fb1d71dee064f.zip
dialyzer: Suppress unmatched_return for send/2
Diffstat (limited to 'lib/dialyzer/test')
-rw-r--r--lib/dialyzer/test/unmatched_returns_SUITE_data/src/send.erl11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/dialyzer/test/unmatched_returns_SUITE_data/src/send.erl b/lib/dialyzer/test/unmatched_returns_SUITE_data/src/send.erl
new file mode 100644
index 0000000000..4d681b5cc7
--- /dev/null
+++ b/lib/dialyzer/test/unmatched_returns_SUITE_data/src/send.erl
@@ -0,0 +1,11 @@
+-module(send).
+
+-export([s/0]).
+
+s() ->
+ self() ! n(), % no warning
+ erlang:send(self(), n()), % no warning
+ ok.
+
+n() ->
+ {1, 1}.