fix: bug at allGoals
This commit is contained in:
parent
a7c5db6d21
commit
50fd39db89
2 changed files with 7 additions and 3 deletions
|
|
@ -341,9 +341,10 @@ private def getOptRotation (stx : Syntax) : Nat :=
|
|||
let gs ← getUnsolvedGoals
|
||||
let mut gsNew := []
|
||||
for g in gs do
|
||||
setGoals [g]
|
||||
evalTactic stx[1]
|
||||
gsNew := gsNew ++ (← getUnsolvedGoals)
|
||||
unless ← isExprMVarAssigned g do
|
||||
setGoals [g]
|
||||
evalTactic stx[1]
|
||||
gsNew := gsNew ++ (← getUnsolvedGoals)
|
||||
setGoals gsNew
|
||||
|
||||
@[builtinTactic tacticSeq] def evalTacticSeq : Tactic := fun stx =>
|
||||
|
|
|
|||
|
|
@ -58,3 +58,6 @@ theorem Weekday.test2 (d : Weekday) : next (previous d) = id d := by
|
|||
cases d <;> rw idEq
|
||||
traceState
|
||||
allGoals rfl
|
||||
|
||||
def bug {a b c : Nat} (h₁ : a = b) (h₂ : b = c) : a = c := by
|
||||
apply Eq.trans <;> assumption
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue