Skip to content

Commit

Permalink
fix: sharing bug
Browse files Browse the repository at this point in the history
  • Loading branch information
digama0 committed Oct 30, 2023
1 parent 68da6f1 commit 2d54c3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lean4Lean/TypeChecker.lean
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ def whnfCore' (e : Expr) (cheapRec := false) (cheapProj := false) : RecM Expr :=
| .app .. | .letE .. | .proj .. => pure ()
if let some r := (← get).whnfCoreCache.find? e then
return r
let save r := do
let rec save r := do
if !cheapRec && !cheapProj then
modify fun s => { s with whnfCoreCache := s.whnfCoreCache.insert e r }
return r
Expand Down

0 comments on commit 2d54c3d

Please sign in to comment.