fix(library/init/meta): show_goal also changes the goal
This commit is contained in:
parent
544817cf15
commit
d7fc571e36
1 changed files with 1 additions and 1 deletions
|
|
@ -906,7 +906,7 @@ tactic.done
|
|||
private meta def show_goal_aux (p : pexpr) : list expr → list expr → tactic unit
|
||||
| [] r := fail "show_goal tactic failed"
|
||||
| (g::gs) r := do
|
||||
do {set_goals [g], g_ty ← target, ty ← i_to_expr p, unify g_ty ty >> set_goals (g :: r.reverse ++ gs) }
|
||||
do {set_goals [g], g_ty ← target, ty ← i_to_expr p, unify g_ty ty, set_goals (g :: r.reverse ++ gs), tactic.change ty}
|
||||
<|>
|
||||
show_goal_aux gs (g::r)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue