<div dir="ltr"><div>I have a couple more map-related issues. Same error for both of these:</div><div><br></div><div>-module(bug).</div><div>f() -></div><div> a = b#{c => X = 0},</div><div> #{c => X}.</div><div><br>
</div><div>-module(bug).</div><div>f() -></div><div> a = {X = 0}#{},</div><div> #{a => X}.</div><div><br></div><div>$ erl</div><div>Erlang/OTP 17 [RELEASE CANDIDATE 2] [erts-6.0] [source-c2b4eab] [64-bit] [smp:8:8] [async-threads:10] [hipe] [kernel-poll:false]</div>
<div><br></div><div>Eshell V6.0 (abort with ^G)</div><div>1> c(bug).</div><div>Function: f/0</div><div>bug.erl: internal error in core_dsetel_module;</div><div>crash reason: {badmatch,error}</div><div><br></div><div>
in function sys_core_dsetel:visit/2 (sys_core_dsetel.erl, line 98)</div>
<div> in call from sys_core_dsetel:visit/2 (sys_core_dsetel.erl, line 110)</div><div> in call from lists:mapfoldl/3 (lists.erl, line 1352)</div><div> in call from sys_core_dsetel:visit/2 (sys_core_dsetel.erl, line 186)</div>
<div> in call from sys_core_dsetel:visit/2 (sys_core_dsetel.erl, line 142)</div><div> in call from lists:mapfoldl/3 (lists.erl, line 1352)</div><div> in call from sys_core_dsetel:visit/2 (sys_core_dsetel.erl, line 186)</div>
<div> in call from sys_core_dsetel:visit/2 (sys_core_dsetel.erl, line 124)</div><div>bug.erl:2: Warning: function f/0 is unused</div><div>bug.erl:3: Warning: map construction will fail because of a type mismatch</div><div>
bug.erl:3: Warning: this clause cannot match because of different types/sizes</div><div>error</div><div><br></div><div>/ Ulf</div><div><br></div></div>