aboutsummaryrefslogtreecommitdiffstats
path: root/lib/dialyzer
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2014-05-26 11:05:07 +0200
committerBjörn-Egil Dahlberg <[email protected]>2014-05-26 11:05:07 +0200
commit7af3edea8608b3d9d4c3ec7ba20713f4fc7b585c (patch)
treeff0b8e577b4268ca2ad34b682ce16f12c7cd9e27 /lib/dialyzer
parentca57aa51136ef2304f987a328e99946e7ac34b62 (diff)
parent3c95f2613cc7030576f28dae73129dffc1962b96 (diff)
downloadotp-7af3edea8608b3d9d4c3ec7ba20713f4fc7b585c.tar.gz
otp-7af3edea8608b3d9d4c3ec7ba20713f4fc7b585c.tar.bz2
otp-7af3edea8608b3d9d4c3ec7ba20713f4fc7b585c.zip
Merge branch 'maint'
Diffstat (limited to 'lib/dialyzer')
-rw-r--r--lib/dialyzer/test/small_SUITE_data/results/maps_difftype3
-rw-r--r--lib/dialyzer/test/small_SUITE_data/src/maps_difftype.erl11
2 files changed, 14 insertions, 0 deletions
diff --git a/lib/dialyzer/test/small_SUITE_data/results/maps_difftype b/lib/dialyzer/test/small_SUITE_data/results/maps_difftype
new file mode 100644
index 0000000000..8980321135
--- /dev/null
+++ b/lib/dialyzer/test/small_SUITE_data/results/maps_difftype
@@ -0,0 +1,3 @@
+
+maps_difftype.erl:10: Function empty_mismatch/1 has no local return
+maps_difftype.erl:11: The pattern ~{}~ can never match the type tuple()
diff --git a/lib/dialyzer/test/small_SUITE_data/src/maps_difftype.erl b/lib/dialyzer/test/small_SUITE_data/src/maps_difftype.erl
new file mode 100644
index 0000000000..19e61a7944
--- /dev/null
+++ b/lib/dialyzer/test/small_SUITE_data/src/maps_difftype.erl
@@ -0,0 +1,11 @@
+%%
+%% File: maps_difftype.erl
+%% Author: Björn-Egil Dahlberg
+%% Created: 2014-04-29
+%%
+-module(maps_difftype).
+
+-export([empty_mismatch/1]).
+
+empty_mismatch(Tuple) when is_tuple(Tuple) ->
+ case Tuple of #{} -> ok end.