<div dir="ltr">There is a regression in 17.0-rc1. The following code will execute io:format/2 twice:<div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><font face="courier new, monospace"><br></font></div>
<div><div><font face="courier new, monospace">-module(test).</font></div></div><div><div><font face="courier new, monospace">-export([test/0]).</font></div></div><div><div><font face="courier new, monospace"> </font></div>
</div><div><div><font face="courier new, monospace">test() -></font></div></div><div><div><font face="courier new, monospace"> X = Y = io:format(<<"foo~n">>),</font></div></div><div><div><font face="courier new, monospace"> X,</font></div>
</div><div><div><font face="courier new, monospace"> Y.</font></div></div></blockquote><div><div><br></div><div>I ran it with:</div><div><br></div></div></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px">
<div><div><div><div><font face="courier new, monospace">$ erlc test.erl</font></div></div></div></div><div><div><div><font face="courier new, monospace">$ erl -s test test</font></div></div></div></blockquote><div><div><br>
</div><div><div>Above is the minimum test case extracted from a more complex expression where I matched against a record:</div><div><br></div></div></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px">
<font face="courier new, monospace">Value = #elixir_env{} = expr()</font></blockquote><div><div><div><div><br></div><div>Thank you,</div><div><br></div><div><span style="font-size:13px"><div><span style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse"><b>José Valim</b></span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse"><div><span style="font-family:verdana,sans-serif;font-size:x-small"><a href="http://www.plataformatec.com.br/" style="color:rgb(42,93,176)" target="_blank">www.plataformatec.com.br</a></span></div>
<div><span style="font-family:verdana,sans-serif;font-size:x-small">Skype: jv.ptec</span></div><div><span style="font-family:verdana,sans-serif;font-size:x-small">Founder and Lead Developer</span></div></span></div></span></div>
</div>
</div></div></div>