<div dir="ltr"><div>Yes this is likely the same bug that I reported in february: <a href="http://erlang.org/pipermail/erlang-bugs/2015-February/004768.html">http://erlang.org/pipermail/erlang-bugs/2015-February/004768.html</a><br><br><br></div>Sergej<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 24, 2015 at 12:21 PM, Max Lapshin <span dir="ltr"><<a href="mailto:max.lapshin@gmail.com" target="_blank">max.lapshin@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><a href="https://gist.github.com/maxlapshin/a95d8a27ce93221d883a" target="_blank">https://gist.github.com/maxlapshin/a95d8a27ce93221d883a</a><br><div><br></div><div>when I match map in record: </div><div><br></div><div>modify(#r1{map_data = #{count := Cnt} = M}=R1) -></div><div><br></div><div>I get badarg when modify record in the end of function.</div><div><br></div><div>I've attached two files looking similar in the gist. </div><div><br></div><div><br></div><div><br></div><div><br></div><div>When I launch first, I get badarg with the line of function header:</div><div><br></div><div>
<p>erl -s map_test1 main</p>
<p>Erlang/OTP 17 [erts-6.3] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:10] [hipe] [kernel-poll:false] [dtrace]</p>
<p>Created: {r1,#{count => 1},0}</p>
<p>{"init terminating in do_boot",{badarg,[{map_test1,modify,1,[{file,"map_test1.erl"},{line,11}]},{map_test1,main,0,[{file,"map_test1.erl"},{line,8}]},{init,start_it,1,[]},{init,start_em,1,[]}]}}</p>
<p><br></p><p>when I launch second, it works (but makes useless work).</p><p><br></p><p>Is it a known bug? Or maybe it is not a bug, but just my misunderstanding?</p><p><br></p></div><div><br></div></div>
<br>_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
<br></blockquote></div><br></div>