<div dir="ltr"><div>-module(bug).</div><div>f(X) -> [[#{a := _, a := _}] = [X]].</div><div><br></div><div>$ erl</div><div>Erlang/OTP 17 [RELEASE CANDIDATE 2] [erts-6.0] [source-2fbbc2f] [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/1</div><div>bug.erl: internal error in core_fold_module;</div><div>crash reason: function_clause</div><div><br></div><div> in function sys_core_fold:expr/3</div>
<div> called as sys_core_fold:expr({c_alias,[],{c_var,[],cor4},{c_var,[],cor5}},</div><div> value,</div><div> {sub,[],{4,{cor0,{'X',nil,nil},{cor4,nil,{cor5,nil,nil}}}},[],false})</div><div> in call from sys_core_fold:pair/3 (sys_core_fold.erl, line 437)</div>
<div> in call from sys_core_fold:pair_list/3 (sys_core_fold.erl, line 431)</div><div> in call from sys_core_fold:expr/3 (sys_core_fold.erl, line 250)</div><div> in call from sys_core_fold:expr/3 (sys_core_fold.erl, line 231)</div>
<div> in call from sys_core_fold:opt_simple_let/3 (sys_core_fold.erl, line 2549)</div><div> in call from sys_core_fold:clause/4 (sys_core_fold.erl, line 1481)</div><div> in call from sys_core_fold:clauses/5 (sys_core_fold.erl, line 1699)</div>
<div>bug.erl:2: Warning: function f/1 is unused</div><div>error</div><div><br></div><div>/ Ulf</div><div><br></div></div>