[erlang-bugs] Regression on match in 17.0-rc1

José Valim <>
Mon Feb 3 19:34:47 CET 2014


There is a regression in 17.0-rc1. The following code will execute
io:format/2 twice:


-module(test).
-export([test/0]).

test() ->
  X = Y = io:format(<<"foo~n">>),
  X,
  Y.


I ran it with:

$ erlc test.erl
$ erl -s test test


Above is the minimum test case extracted from a more complex expression
where I matched against a record:

Value = #elixir_env{} = expr()


Thank you,

*José Valim*
www.plataformatec.com.br
Skype: jv.ptec
Founder and Lead Developer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-bugs/attachments/20140203/916a9e7c/attachment.html>


More information about the erlang-bugs mailing list