aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/test
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2015-05-20 12:45:37 +0200
committerHans Bolinder <[email protected]>2015-06-12 10:42:19 +0200
commitca1c1f8d1a4fe4f7b19b9959c48bd64915215f24 (patch)
tree2efd88009d5a10087f87be0616c7e0ed60f59447 /lib/stdlib/test
parent6347ee34c81a136055182367905647588a3947bf (diff)
downloadotp-ca1c1f8d1a4fe4f7b19b9959c48bd64915215f24.tar.gz
otp-ca1c1f8d1a4fe4f7b19b9959c48bd64915215f24.tar.bz2
otp-ca1c1f8d1a4fe4f7b19b9959c48bd64915215f24.zip
stdlib: Introduce precedence for operators in types
Add new functions erl_parse:type_inop_prec() and erl_parse:type_preop_prec(). Get rid of paren_type used for parentheses in types.
Diffstat (limited to 'lib/stdlib/test')
-rw-r--r--lib/stdlib/test/erl_pp_SUITE.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/stdlib/test/erl_pp_SUITE.erl b/lib/stdlib/test/erl_pp_SUITE.erl
index 1d63c8e17e..afeeb5bfd4 100644
--- a/lib/stdlib/test/erl_pp_SUITE.erl
+++ b/lib/stdlib/test/erl_pp_SUITE.erl
@@ -1149,7 +1149,7 @@ otp_11100(Config) when is_list(Config) ->
{a,{type,A1,range,[{integer,A1,1},{foo,bar}]},[]}}),
"-type foo(INVALID-FORM:{foo,bar}:) :: A.\n" =
pf({attribute,A1,type,{foo,{var,A1,'A'},[{foo,bar}]}}),
- "-type foo() :: (INVALID-FORM:{foo,bar}: :: []).\n" =
+ "-type foo() :: INVALID-FORM:{foo,bar}: :: [].\n" =
pf({attribute,A1,type,
{foo,{paren_type,A1,
[{ann_type,A1,[{foo,bar},{type,A1,nil,[]}]}]},