summaryrefslogtreecommitdiff
path: root/lib/syntax_tools
diff options
context:
space:
mode:
authorHans Bolinder <hasse@erlang.org>2020-03-03 13:00:41 +0100
committerHans Bolinder <hasse@erlang.org>2020-03-03 13:00:41 +0100
commitfc48836c91b9518e27afadbfef77bc9cdb73f0da (patch)
treea7dce7f9d3ad427d1ecefdc95d2b06ade5e9a2e1 /lib/syntax_tools
parent10dd992ca46adcb7e614caa9280f03f0ba4a00ba (diff)
downloaderlang-fc48836c91b9518e27afadbfef77bc9cdb73f0da.tar.gz
Correct usage of the erl_anno module
Diffstat (limited to 'lib/syntax_tools')
-rw-r--r--lib/syntax_tools/test/merl_SUITE.erl7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/syntax_tools/test/merl_SUITE.erl b/lib/syntax_tools/test/merl_SUITE.erl
index 6389ad7738..8f60f6371c 100644
--- a/lib/syntax_tools/test/merl_SUITE.erl
+++ b/lib/syntax_tools/test/merl_SUITE.erl
@@ -104,11 +104,12 @@ transform_parse_error_test(_Config) ->
otp_15291(_Config) ->
C0 = merl:quote("() -> ok"),
- {clause,1,[],[],[{atom,1,ok}]} = C0,
+ A1 = erl_anno:new(1),
+ {clause,A1,[],[],[{atom,A1,ok}]} = C0,
C2 = merl:quote("(_,_) -> ok"),
- {clause,1,[{var,1,'_'},{var,1,'_'}],[],[{atom,1,ok}]} = C2,
+ {clause,A1,[{var,A1,'_'},{var,A1,'_'}],[],[{atom,A1,ok}]} = C2,
C1 = merl:quote("(_) -> ok"),
- {clause,1,[{var,1,'_'}],[],[{atom,1,ok}]} = C1,
+ {clause,A1,[{var,A1,'_'}],[],[{atom,A1,ok}]} = C1,
ok.
%% utilities