<div dir="ltr"><div>-module(bug).</div><div>f() -> </div><div> case maybe_map of</div><div> #{} -> ok;</div><div> not_map -> error</div><div> end.</div><div><br></div><div>$ erl</div><div>Erlang/OTP 17 [RELEASE CANDIDATE 2] [erts-6.0] [source-a74e66a] [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_fold_module;</div><div>crash reason: {case_clause,{none}}</div><div><br></div><div>
in function sys_core_fold:will_match/2 (sys_core_fold.erl, line 1748)</div><div> in call from sys_core_fold:clauses/5 (sys_core_fold.erl, line 1701)</div><div> in call from sys_core_fold:clauses/5 (sys_core_fold.erl, line 1718)</div>
<div> in call from sys_core_fold:expr/3 (sys_core_fold.erl, line 352)</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> in call from sys_core_fold:expr/3 (sys_core_fold.erl, line 352)</div><div> in call from sys_core_fold:expr/3 (sys_core_fold.erl, line 279)</div><div>bug.erl:2: Warning: function f/0 is unused</div><div>error</div>
<div><br></div><div>/ Ulf</div><div><br></div></div>