diff options
author | Hans Bolinder <hasse@erlang.org> | 2016-05-17 09:07:29 +0200 |
---|---|---|
committer | Hans Bolinder <hasse@erlang.org> | 2016-06-09 11:28:00 +0200 |
commit | e44b4c47605cce574222e1bc579fb1d71dee064f (patch) | |
tree | a97cf040f4ffea0c3dbde7403c43e2c13adf5f54 /lib/dialyzer/test | |
parent | 13e0b9420276b71bdac89692f00dc20c3112bc1b (diff) | |
download | erlang-e44b4c47605cce574222e1bc579fb1d71dee064f.tar.gz |
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.erl | 11 |
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}. |