Skip to content

Commit

Permalink
fix: withInferTypeConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
leodemoura committed Nov 29, 2024
1 parent c5fcab1 commit a46cb57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Lean/Meta/InferType.lean
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ because it overrides unrelated configurations.
@[inline] def withInferTypeConfig (x : MetaM α) : MetaM α :=
withAtLeastTransparency .default do
let cfg ← getConfig
if cfg.beta && cfg.iota && cfg.zeta && cfg.zetaDelta && cfg.proj != .no then
if cfg.beta && cfg.iota && cfg.zeta && cfg.zetaDelta && cfg.proj == .yesWithDelta then
x
else
withConfig (fun cfg => { cfg with beta := true, iota := true, zeta := true, zetaDelta := true, proj := .yesWithDelta }) x
Expand Down

0 comments on commit a46cb57

Please sign in to comment.