diff options
author | zadean <[email protected]> | 2019-08-19 14:47:32 +0200 |
---|---|---|
committer | Hans Bolinder <[email protected]> | 2019-08-22 14:08:40 +0200 |
commit | 19697637a41f7e5199f017abae44bac5e7367c57 (patch) | |
tree | be3c92979dafb9ce40e125b7229da0da426e690d /lib/syntax_tools/test/syntax_tools_SUITE_data/type_specs.erl | |
parent | 98462d8ec91dc34a06f5a2801c906ca1a0dd4ba1 (diff) | |
download | otp-19697637a41f7e5199f017abae44bac5e7367c57.tar.gz otp-19697637a41f7e5199f017abae44bac5e7367c57.tar.bz2 otp-19697637a41f7e5199f017abae44bac5e7367c57.zip |
Update test suite
Add record with exact and associated map types to type_specs.erl. The
record forces the erl_parse format for map types to be retained.
Add test wrapped_subtrees to the test suite. It ensures that each
erl_parse node it encounters can be wrapped and accessed with
erl_syntax:subtrees/1 without error.
Diffstat (limited to 'lib/syntax_tools/test/syntax_tools_SUITE_data/type_specs.erl')
-rw-r--r-- | lib/syntax_tools/test/syntax_tools_SUITE_data/type_specs.erl | 3 |
1 files changed, 3 insertions, 0 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 e4f8a1c3de..b23acdb39e 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 @@ -37,6 +37,9 @@ -record(par, {a :: undefined | ?MODULE}). +-record(mt, {e :: #{any() := any()}, + a :: #{any() => any()}}). + -record(r0, {}). -record(r, |