Skip to content

Commit b5ddb00

Browse files
committed
fix message log fix
1 parent 959a3d7 commit b5ddb00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Lean/Elab/Command.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -723,10 +723,10 @@ variable (n : Nat)
723723
-/
724724
def runTermElabM (elabFn : Array Expr → TermElabM α) : CommandElabM α := do
725725
let scope ← getScope
726+
let msgs ← Core.getMessageLog
726727
liftTermElabM <|
727728
Term.withAutoBoundImplicit <|
728729
Term.elabBinders scope.varDecls fun xs => do
729-
let msgs ← Core.getMessageLog
730730
-- We need to synthesize postponed terms because this is a checkpoint for the auto-bound implicit feature
731731
-- If we don't use this checkpoint here, then auto-bound implicits in the postponed terms will not be handled correctly.
732732
Term.synthesizeSyntheticMVarsNoPostponing

0 commit comments

Comments
 (0)