diff options
author | Hans Bolinder <[email protected]> | 2016-11-16 15:06:17 +0100 |
---|---|---|
committer | Hans Bolinder <[email protected]> | 2016-11-22 10:29:04 +0100 |
commit | 773948083b57ad59eb90b5668e72175d79acbe1f (patch) | |
tree | 36683a8f496a556801bbba3f0fa121a71777350d /lib/dialyzer/test/small_SUITE_data/results | |
parent | a202c2e0fa1f7810fb19c5a051369ce8b308ebc1 (diff) | |
download | otp-773948083b57ad59eb90b5668e72175d79acbe1f.tar.gz otp-773948083b57ad59eb90b5668e72175d79acbe1f.tar.bz2 otp-773948083b57ad59eb90b5668e72175d79acbe1f.zip |
dialyzer: Improve a warning message
Messages regarding guards with orelse/andalso could look
like "Clause guard cannot succeed. The variable A was matched
against the type any()". Now they look like as if or/and is
used: "Guard test is_integer(A::atom()) can never succeed".
Diffstat (limited to 'lib/dialyzer/test/small_SUITE_data/results')
-rw-r--r-- | lib/dialyzer/test/small_SUITE_data/results/guards | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dialyzer/test/small_SUITE_data/results/guards b/lib/dialyzer/test/small_SUITE_data/results/guards index 824a7cfa24..cd0d3cace0 100644 --- a/lib/dialyzer/test/small_SUITE_data/results/guards +++ b/lib/dialyzer/test/small_SUITE_data/results/guards @@ -10,8 +10,8 @@ guards.erl:136: The call guards:t16('a') will never return since it differs in t guards.erl:136: The call guards:t16('c') will never return since it differs in the 1st argument from the success typing arguments: ('b') guards.erl:55: Function t5/1 has no local return guards.erl:55: Guard test is_integer(A::atom()) can never succeed -guards.erl:59: Clause guard cannot succeed. The variable A was matched against the type any() guards.erl:59: Function t6/1 has no local return +guards.erl:59: Guard test is_integer(A::atom()) can never succeed guards.erl:67: The call guards:t7({42}) will never return since it differs in the 1st argument from the success typing arguments: (atom() | integer()) guards.erl:75: The call guards:t8({42}) will never return since it differs in the 1st argument from the success typing arguments: (atom() | integer()) guards.erl:92: The variable _ can never match since previous clauses completely covered the type {'true','true'} |