aboutsummaryrefslogtreecommitdiffstats
path: root/lib/dialyzer/test/small_SUITE_data/src/record_match.erl
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2018-02-07 15:16:15 +0100
committerHans Bolinder <[email protected]>2018-02-14 08:25:06 +0100
commit120760b543159d36d88f1feb204ff84c74306515 (patch)
treefc981f75d7cc755b89b6b35fcbfbc37c9132083f /lib/dialyzer/test/small_SUITE_data/src/record_match.erl
parent17a20d8f16f638697c64b4154968215835868d31 (diff)
downloadotp-120760b543159d36d88f1feb204ff84c74306515.tar.gz
otp-120760b543159d36d88f1feb204ff84c74306515.tar.bz2
otp-120760b543159d36d88f1feb204ff84c74306515.zip
dialyzer: Fix a crash
Diffstat (limited to 'lib/dialyzer/test/small_SUITE_data/src/record_match.erl')
-rw-r--r--lib/dialyzer/test/small_SUITE_data/src/record_match.erl17
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/dialyzer/test/small_SUITE_data/src/record_match.erl b/lib/dialyzer/test/small_SUITE_data/src/record_match.erl
new file mode 100644
index 0000000000..8e9b91937f
--- /dev/null
+++ b/lib/dialyzer/test/small_SUITE_data/src/record_match.erl
@@ -0,0 +1,17 @@
+-module(record_match).
+
+-export([select/0]).
+
+-record(b_literal, {val}).
+-record(b_remote, {mod,name,arity}).
+-record(b_local, {name,arity}).
+
+-type b_remote() :: #b_remote{}.
+-type b_local() :: #b_local{}.
+
+-type argument() :: b_remote() | b_local().
+
+-record(b_set, {args=[] :: [argument()]}).
+
+select() ->
+ #b_set{args=[#b_remote{},#b_literal{}]}.