aboutsummaryrefslogtreecommitdiffstats
path: root/lib/dialyzer/test/options2_SUITE_data/src/unknown_type.erl
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2017-04-26 12:34:15 +0200
committerHans Bolinder <[email protected]>2017-04-26 14:38:42 +0200
commita5891c64cbb7d3baed93aee72486443212fed401 (patch)
treeaff098f26fdd43d74e6c1be371e308c9ce91ce19 /lib/dialyzer/test/options2_SUITE_data/src/unknown_type.erl
parent6acb7d6fb8d23c0b0b78d30a618d2636ad463e6e (diff)
downloadotp-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/options2_SUITE_data/src/unknown_type.erl')
-rw-r--r--lib/dialyzer/test/options2_SUITE_data/src/unknown_type.erl7
1 files changed, 7 insertions, 0 deletions
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.