aboutsummaryrefslogtreecommitdiffstats
path: root/lib/dialyzer/test/behaviour_SUITE_data/src
diff options
context:
space:
mode:
authorStavros Aronis <[email protected]>2011-11-10 13:33:58 +0100
committerStavros Aronis <[email protected]>2011-11-18 15:06:46 +0100
commitfc075ff9064eccd3ea2da0c067ec9ef01aaeb183 (patch)
treec8f863daa82a4f8365cd4a892134e0ec6c7b4ccb /lib/dialyzer/test/behaviour_SUITE_data/src
parentd101155c5dc115a51725b52e500c9a981845f2da (diff)
downloadotp-fc075ff9064eccd3ea2da0c067ec9ef01aaeb183.tar.gz
otp-fc075ff9064eccd3ea2da0c067ec9ef01aaeb183.tar.bz2
otp-fc075ff9064eccd3ea2da0c067ec9ef01aaeb183.zip
Allow none() as return value in callbacks
Diffstat (limited to 'lib/dialyzer/test/behaviour_SUITE_data/src')
-rw-r--r--lib/dialyzer/test/behaviour_SUITE_data/src/sample_behaviour/sample_callback_correct_2.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dialyzer/test/behaviour_SUITE_data/src/sample_behaviour/sample_callback_correct_2.erl b/lib/dialyzer/test/behaviour_SUITE_data/src/sample_behaviour/sample_callback_correct_2.erl
index 148cea6843..c218174e58 100644
--- a/lib/dialyzer/test/behaviour_SUITE_data/src/sample_behaviour/sample_callback_correct_2.erl
+++ b/lib/dialyzer/test/behaviour_SUITE_data/src/sample_behaviour/sample_callback_correct_2.erl
@@ -13,7 +13,7 @@
]).
sample_callback_1() -> 42. % This is a valid return.
-sample_callback_2() -> foo. % This is a valid return.
+sample_callback_2() -> halt(). % Crashes are also allowed.
sample_callback_3() -> {ok, 17}. % This is a valid return.
sample_callback_4(Input) ->
case Input of