<div dir="ltr"><div class="gmail-highlight gmail-highlight-source-erlang"><pre><span class="gmail-pl-en">erl_syntax</span>:<span class="gmail-pl-en">try_expr_handlers</span>({<span class="gmail-pl-c1">'try'</span>,<span class="gmail-pl-c1">0</span>,[{<span class="gmail-pl-c1">atom</span>,<span class="gmail-pl-c1">0</span>,<span class="gmail-pl-c1">true</span>}],[],[{<span class="gmail-pl-c1">clause</span>,<span class="gmail-pl-c1">7</span>,[{<span class="gmail-pl-c1">tuple</span>,<span class="gmail-pl-c1">7</span>,[{<span class="gmail-pl-c1">atom</span>,<span class="gmail-pl-c1">7</span>,<span class="gmail-pl-c1">'throw'</span>},{<span class="gmail-pl-c1">var</span>,<span class="gmail-pl-c1">7</span>,<span class="gmail-pl-c1">'_@Str@'</span>},{<span class="gmail-pl-c1">var</span>,<span class="gmail-pl-c1">7</span>,<span class="gmail-pl-c1">'_'</span>}]}],[],[{<span class="gmail-pl-c1">integer</span>,<span class="gmail-pl-c1">7</span>,<span class="gmail-pl-c1">1</span>}]}],[]}).
</pre></div>
<p>In 19:</p>
<pre><code>[{clause,7,[{var,7,'_@Str@'}],[],[{integer,7,1}]}]
</code></pre>
<p>in 21:</p>
<pre><code>erl_syntax:try_expr_handlers({'try',0,[{atom,0,true}],[],[{clause,7,[{tuple,7,[{atom,7,'throw'},{var,7,'_@Str@'},{var,7,'_'}]}],[],[{integer,7,1}]}],[]}).
</code></pre><br></div><div class="gmail_extra"><br><div class="gmail_quote">2018-08-17 23:46 GMT+03:00 John Doe <span dir="ltr"><<a href="mailto:donpedrothird@gmail.com" target="_blank">donpedrothird@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><p>minimal code for reproducing the issue</p>
<div class="m_812511621802602587gmail-highlight m_812511621802602587gmail-highlight-source-erlang"><pre>-<span class="m_812511621802602587gmail-pl-k">module</span>(<span class="m_812511621802602587gmail-pl-en">a</span>).
-<span class="m_812511621802602587gmail-pl-k">export</span>([<span class="m_812511621802602587gmail-pl-en">test</span>/<span class="m_812511621802602587gmail-pl-c1">0</span>]).
-<span class="m_812511621802602587gmail-pl-k">include_lib</span>(<span class="m_812511621802602587gmail-pl-s"><span class="m_812511621802602587gmail-pl-pds">"</span>syntax_tools/<wbr>include/merl.hrl<span class="m_812511621802602587gmail-pl-pds">"</span></span>).

<span class="m_812511621802602587gmail-pl-en">test</span>() <span class="m_812511621802602587gmail-pl-k">-></span> 
        <span class="m_812511621802602587gmail-pl-smi">Str</span> <span class="m_812511621802602587gmail-pl-k">=</span> <span class="m_812511621802602587gmail-pl-s"><span class="m_812511621802602587gmail-pl-pds">"</span>a_string<span class="m_812511621802602587gmail-pl-pds">"</span></span>,
        <span class="m_812511621802602587gmail-pl-k">?</span><span class="m_812511621802602587gmail-pl-en">Q</span>(<span class="m_812511621802602587gmail-pl-s"><span class="m_812511621802602587gmail-pl-pds">"</span>_@Str@ -> 1<span class="m_812511621802602587gmail-pl-pds">"</span></span>).</pre></div>
<p>Result in OTP 19:</p>
<pre><code>{tree,clause,
      {attr,7,[],none},
      {clause,[{tree,string,{attr,0,<wbr>[],none},"a_string"}],
              none,
              [{integer,7,1}]}}
</code></pre>
<p>in OTP 21</p>
<pre><code>{tree,clause,
      {attr,7,[],none},
      {clause,[{tree,class_<wbr>qualifier,
                     {attr,0,[],none},
                     {class_qualifier,{atom,7,<wbr>throw},
                                      {tree,string,{attr,0,[],none},<wbr>"a_string"},
                                      {var,7,'_'}}}],
              none,
              [{integer,7,1}]}}

</code></pre><br></div>
</blockquote></div><br></div>