aboutsummaryrefslogtreecommitdiffstats
path: root/lib/syntax_tools/test
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2016-05-03 10:23:58 +0200
committerHans Bolinder <[email protected]>2016-05-09 08:27:22 +0200
commitdb39317ea85f7d8646b3da3d96f2f05954e16665 (patch)
tree46d145f6fe5cde5b4a0380cd12da33e7dc56404c /lib/syntax_tools/test
parenta73f32b54f5679a2badb48e080203e28f3b40af7 (diff)
downloadotp-db39317ea85f7d8646b3da3d96f2f05954e16665.tar.gz
otp-db39317ea85f7d8646b3da3d96f2f05954e16665.tar.bz2
otp-db39317ea85f7d8646b3da3d96f2f05954e16665.zip
syntax_tools: Add support for new map type syntax
The pretty-printing of `...' in map types is complex. The representation of `...' can be changed before OTP 19.
Diffstat (limited to 'lib/syntax_tools/test')
-rw-r--r--lib/syntax_tools/test/syntax_tools_SUITE_data/type_specs.erl7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/syntax_tools/test/syntax_tools_SUITE_data/type_specs.erl b/lib/syntax_tools/test/syntax_tools_SUITE_data/type_specs.erl
index d5a9554f18..5621d3a293 100644
--- a/lib/syntax_tools/test/syntax_tools_SUITE_data/type_specs.erl
+++ b/lib/syntax_tools/test/syntax_tools_SUITE_data/type_specs.erl
@@ -47,8 +47,11 @@
-type r0() :: #r0{} | #r{f1 :: 3} | #r{f1 :: 3, f2 :: 'sju'}.
--type m1() :: #{}.
--type m2() :: #{a => m1(), b => #{} | fy:m2()}.
+-type m1() :: #{} | map().
+-type m2() :: #{a := m1(), b => #{} | fy:m2()}.
+-type m3() :: #{...}.
+-type m4() :: #{_ => _, ...}.
+-type m5() :: #{any() => any(), ...}. % Currently printed as `#{..., ...}'.
-type b1() :: B1 :: binary() | (BitString :: bitstring()).
-define(PAIR(A, B), {(A), (B)}).