aboutsummaryrefslogtreecommitdiffstats
path: root/lib/dialyzer/test/opaque_SUITE_data/results/para
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2016-11-15 16:03:18 +0100
committerHans Bolinder <[email protected]>2016-11-22 10:29:04 +0100
commita202c2e0fa1f7810fb19c5a051369ce8b308ebc1 (patch)
tree419bf3fc59eec3dd109d8da50a8f08b50d91c702 /lib/dialyzer/test/opaque_SUITE_data/results/para
parentc79e32a66c366bbdf5025ad0ae7f7057a0ddb156 (diff)
downloadotp-a202c2e0fa1f7810fb19c5a051369ce8b308ebc1.tar.gz
otp-a202c2e0fa1f7810fb19c5a051369ce8b308ebc1.tar.bz2
otp-a202c2e0fa1f7810fb19c5a051369ce8b308ebc1.zip
dialyzer: Improve a warning message
Messages like "Invalid type specification for function para3:exp_adt/0. The success typing is () -> 3" now look like "The specification for para3:exp_adt/0 has an opaque subtype para3_adt:exp1(para3_adt:exp2()) which is violated by the success typing () -> 3". The old message did not give any clue as to what invalidated the contract, namely the opaque subtype.
Diffstat (limited to 'lib/dialyzer/test/opaque_SUITE_data/results/para')
-rw-r--r--lib/dialyzer/test/opaque_SUITE_data/results/para2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dialyzer/test/opaque_SUITE_data/results/para b/lib/dialyzer/test/opaque_SUITE_data/results/para
index b23d0cae3a..a490de2d43 100644
--- a/lib/dialyzer/test/opaque_SUITE_data/results/para
+++ b/lib/dialyzer/test/opaque_SUITE_data/results/para
@@ -18,7 +18,7 @@ para3.erl:36: The pattern {{{17}}} can never match the type {{{{{{_,_,_,_,_}}}}}
para3.erl:55: Invalid type specification for function para3:t2/0. The success typing is () -> 'foo'
para3.erl:65: The attempt to match a term of type {{{{{para3_adt:ot1(_,_,_,_,_)}}}}} against the pattern {{{{{17}}}}} breaks the opaqueness of para3_adt:ot1(_,_,_,_,_)
para3.erl:68: The pattern {{{{17}}}} can never match the type {{{{{para3_adt:ot1(_,_,_,_,_)}}}}}
-para3.erl:74: Invalid type specification for function para3:exp_adt/0. The success typing is () -> 3
+para3.erl:74: The specification for para3:exp_adt/0 has an opaque subtype para3_adt:exp1(para3_adt:exp2()) which is violated by the success typing () -> 3
para4.erl:21: Invalid type specification for function para4:a/1. The success typing is (para4:d_all() | para4:d_atom()) -> [{atom() | integer(),atom() | integer()}]
para4.erl:26: Invalid type specification for function para4:i/1. The success typing is (para4:d_all() | para4:d_integer()) -> [{atom() | integer(),atom() | integer()}]
para4.erl:31: Invalid type specification for function para4:t/1. The success typing is (para4:d_all() | para4:d_tuple()) -> [{atom() | integer(),atom() | integer()}]