diff options
author | Fredrik Gustafsson <[email protected]> | 2013-01-15 11:47:20 +0100 |
---|---|---|
committer | Fredrik Gustafsson <[email protected]> | 2013-01-15 11:47:20 +0100 |
commit | fa6771380931c7ded0ad4d36e6cd2554bb932dfc (patch) | |
tree | e5b5e1451f77ab7d4805fe2ea9e2bd110fb05134 /lib/dialyzer/test/small_SUITE_data | |
parent | 0324fe0502d843830e6fe128e307601f21a60f26 (diff) | |
parent | 6f990318a43bfeda392b9bc146c7b1ac757ca644 (diff) | |
download | otp-fa6771380931c7ded0ad4d36e6cd2554bb932dfc.tar.gz otp-fa6771380931c7ded0ad4d36e6cd2554bb932dfc.tar.bz2 otp-fa6771380931c7ded0ad4d36e6cd2554bb932dfc.zip |
Merge branch 'sa/dialyzer-record-field-type/OTP-10681'
* sa/dialyzer-record-field-type/OTP-10681:
Fix precision of record creation violation warnings
Diffstat (limited to 'lib/dialyzer/test/small_SUITE_data')
-rw-r--r-- | lib/dialyzer/test/small_SUITE_data/results/record_creation_diffs | 3 | ||||
-rw-r--r-- | lib/dialyzer/test/small_SUITE_data/src/record_creation_diffs.erl | 11 |
2 files changed, 14 insertions, 0 deletions
diff --git a/lib/dialyzer/test/small_SUITE_data/results/record_creation_diffs b/lib/dialyzer/test/small_SUITE_data/results/record_creation_diffs new file mode 100644 index 0000000000..f00c4b10ff --- /dev/null +++ b/lib/dialyzer/test/small_SUITE_data/results/record_creation_diffs @@ -0,0 +1,3 @@ + +record_creation_diffs.erl:10: Function foo/1 has no local return +record_creation_diffs.erl:11: Record construction #bar{some_list::{'this','is','a','tuple'}} violates the declared type of field some_list::'undefined' | [any()] diff --git a/lib/dialyzer/test/small_SUITE_data/src/record_creation_diffs.erl b/lib/dialyzer/test/small_SUITE_data/src/record_creation_diffs.erl new file mode 100644 index 0000000000..e813459f8e --- /dev/null +++ b/lib/dialyzer/test/small_SUITE_data/src/record_creation_diffs.erl @@ -0,0 +1,11 @@ +-module(record_creation_diffs). + +-export([foo/1]). + +-record(bar, { + some_atom :: atom(), + some_list :: list() + }). + +foo(Input) -> + #bar{some_atom = Input, some_list = {this,is,a,tuple}}. |