Reported [on Zulip](https://leanprover.zulipchat.com/#narrow/stream/348111-std4/topic/Panics.20in.20Std.2EHashMap.2Efind!/near/406872395). The `dflt` argument of `Option.getD` is not evaluated lazily, as the documentation says, because even after `macro_inline` the expression ```lean match opt, dflt with | some x, _ => x | none, e => e ``` still has the semantics of evaluating `dflt` when `opt` is `some x`.
4 lines
66 B
Text
4 lines
66 B
Text
42
|
|
[Meta.debug] r: match x with
|
|
| some x => x
|
|
| none => 0
|