diff options
author | Björn-Egil Dahlberg <[email protected]> | 2014-03-28 15:59:57 +0100 |
---|---|---|
committer | Björn-Egil Dahlberg <[email protected]> | 2014-03-28 15:59:57 +0100 |
commit | 8964e0f9430fba4f1827734f8e1551ef7c715d0a (patch) | |
tree | 19618eb25945d620c3132fd52fca93709854e444 /lib/stdlib/test | |
parent | 1ce93cb76672b523dbe2c9402f2d36ab431854ea (diff) | |
parent | 13d1e7942402ab134a71a12ced551ebb4cbe7cf8 (diff) | |
download | otp-8964e0f9430fba4f1827734f8e1551ef7c715d0a.tar.gz otp-8964e0f9430fba4f1827734f8e1551ef7c715d0a.tar.bz2 otp-8964e0f9430fba4f1827734f8e1551ef7c715d0a.zip |
Merge branch 'egil/maps-fix-src-listing'
* egil/maps-fix-src-listing:
stdlib: Fix map type listing
Diffstat (limited to 'lib/stdlib/test')
-rw-r--r-- | lib/stdlib/test/erl_pp_SUITE.erl | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/stdlib/test/erl_pp_SUITE.erl b/lib/stdlib/test/erl_pp_SUITE.erl index 390322a5fa..babf3a49eb 100644 --- a/lib/stdlib/test/erl_pp_SUITE.erl +++ b/lib/stdlib/test/erl_pp_SUITE.erl @@ -993,6 +993,16 @@ maps_syntax(Config) when is_list(Config) -> ok = pp_expr(<<"#{ a => 1, <<\"hi\">> => \"world\", 33 => 1.0 }">>), ok = pp_expr(<<"#{ a := V1, <<\"hi\">> := V2 } = M">>), ok = pp_expr(<<"M#{ a => V1, <<\"hi\">> := V2 }">>), + F = <<"-module(maps_type_syntax).\n" + "-compile(export_all).\n" + "-type t1() :: map().\n" + "-type t2() :: #{ atom() => integer(), atom() => float() }.\n" + "-spec f1(t1()) -> 'true'.\n" + "f1(M) when is_map(M) -> true.\n" + "-spec f2(t2()) -> integer().\n" + "f2(#{a := V1,b := V2}) -> V1 + V2.\n" + "\n">>, + ok = pp_forms(F), ok. |