diff options
author | Hans Bolinder <[email protected]> | 2017-04-26 12:34:15 +0200 |
---|---|---|
committer | Hans Bolinder <[email protected]> | 2017-04-26 14:38:42 +0200 |
commit | a5891c64cbb7d3baed93aee72486443212fed401 (patch) | |
tree | aff098f26fdd43d74e6c1be371e308c9ce91ce19 /lib/dialyzer/test | |
parent | 6acb7d6fb8d23c0b0b78d30a618d2636ad463e6e (diff) | |
download | otp-a5891c64cbb7d3baed93aee72486443212fed401.tar.gz otp-a5891c64cbb7d3baed93aee72486443212fed401.tar.bz2 otp-a5891c64cbb7d3baed93aee72486443212fed401.zip |
dialyzer: Fix a bug regarding unknown types
Since commit 12b3790 Dialyzer has not reported unknown types.
Diffstat (limited to 'lib/dialyzer/test')
3 files changed, 10 insertions, 1 deletions
diff --git a/lib/dialyzer/test/options2_SUITE_data/dialyzer_options b/lib/dialyzer/test/options2_SUITE_data/dialyzer_options index 5db2e50d23..be57e2de72 100644 --- a/lib/dialyzer/test/options2_SUITE_data/dialyzer_options +++ b/lib/dialyzer/test/options2_SUITE_data/dialyzer_options @@ -1 +1 @@ -{dialyzer_options, [{defines, [{'vsn', 4}]}, {warnings, [no_return]}]}. +{dialyzer_options, [{defines, [{'vsn', 4}]}, {warnings, [unknown, no_return]}]}. diff --git a/lib/dialyzer/test/options2_SUITE_data/results/unknown_type b/lib/dialyzer/test/options2_SUITE_data/results/unknown_type new file mode 100644 index 0000000000..d308c5a810 --- /dev/null +++ b/lib/dialyzer/test/options2_SUITE_data/results/unknown_type @@ -0,0 +1,2 @@ + +:0: Unknown type unknown:type/0
\ No newline at end of file diff --git a/lib/dialyzer/test/options2_SUITE_data/src/unknown_type.erl b/lib/dialyzer/test/options2_SUITE_data/src/unknown_type.erl new file mode 100644 index 0000000000..7a891c0831 --- /dev/null +++ b/lib/dialyzer/test/options2_SUITE_data/src/unknown_type.erl @@ -0,0 +1,7 @@ +-module(unknown_type). + +-export([t/0]). + +-spec t() -> unknown:type(). +t() -> + a. |