From 120760b543159d36d88f1feb204ff84c74306515 Mon Sep 17 00:00:00 2001 From: Hans Bolinder Date: Wed, 7 Feb 2018 15:16:15 +0100 Subject: dialyzer: Fix a crash --- lib/dialyzer/test/small_SUITE_data/src/record_match.erl | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 lib/dialyzer/test/small_SUITE_data/src/record_match.erl (limited to 'lib/dialyzer/test/small_SUITE_data/src/record_match.erl') 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{}]}. -- cgit v1.2.3