[erlang-questions] merl behaves differently (incorrectly?) in OTP 21
John Doe
donpedrothird@REDACTED
Fri Aug 17 22:46:30 CEST 2018
minimal code for reproducing the issue
-module(a).
-export([test/0]).
-include_lib("syntax_tools/include/merl.hrl").
test() ->
Str = "a_string",
?Q("_@REDACTED@ -> 1").
Result in OTP 19:
{tree,clause,
{attr,7,[],none},
{clause,[{tree,string,{attr,0,[],none},"a_string"}],
none,
[{integer,7,1}]}}
in OTP 21
{tree,clause,
{attr,7,[],none},
{clause,[{tree,class_qualifier,
{attr,0,[],none},
{class_qualifier,{atom,7,throw},
{tree,string,{attr,0,[],none},"a_string"},
{var,7,'_'}}}],
none,
[{integer,7,1}]}}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20180817/075b797b/attachment.htm>
More information about the erlang-questions
mailing list