diff options
author | Hans Bolinder <[email protected]> | 2015-12-07 09:52:10 +0100 |
---|---|---|
committer | Hans Bolinder <[email protected]> | 2015-12-07 09:52:10 +0100 |
commit | 572bea9807504670b1eec4aab6b8ac833cd42b26 (patch) | |
tree | da256565325db8f25eb3cc43241eba4334963f0f /lib/stdlib/test | |
parent | 4b5cc477a78247dd68f142d5cb044ff0c34a576b (diff) | |
parent | 23b158133466f3fd60336672e11f43ffefb0c941 (diff) | |
download | otp-572bea9807504670b1eec4aab6b8ac833cd42b26.tar.gz otp-572bea9807504670b1eec4aab6b8ac833cd42b26.tar.bz2 otp-572bea9807504670b1eec4aab6b8ac833cd42b26.zip |
Merge branch 'hb/stdlib/type_printing/OTP-13084' into maint
* hb/stdlib/type_printing/OTP-13084:
doc: Fix some minor issues in Types and Function Specifications
erts: Remove CDATA from The Abstract Format document
erts: Correct the types section in The Abstract Format document
stdlib: Correct pretty-printing of map types
stdlib: Pretty-print constraints as 'V :: T'
Diffstat (limited to 'lib/stdlib/test')
-rw-r--r-- | lib/stdlib/test/erl_pp_SUITE.erl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/stdlib/test/erl_pp_SUITE.erl b/lib/stdlib/test/erl_pp_SUITE.erl index 389fd059f6..92e2764c65 100644 --- a/lib/stdlib/test/erl_pp_SUITE.erl +++ b/lib/stdlib/test/erl_pp_SUITE.erl @@ -960,6 +960,9 @@ maps_syntax(Config) when is_list(Config) -> "-compile(export_all).\n" "-type t1() :: map().\n" "-type t2() :: #{ atom() => integer(), atom() => float() }.\n" + "-type u() :: #{a => (I :: integer()) | (A :: atom()),\n" + " (X :: atom()) | (Y :: atom()) =>\n" + " (I :: integer()) | (A :: atom())}.\n" "-spec f1(t1()) -> 'true'.\n" "f1(M) when is_map(M) -> true.\n" "-spec f2(t2()) -> integer().\n" |