fix(library/tactic/intros_tactic): seg fault at intros tactic, fixes #366
This commit is contained in:
parent
1a813fc720
commit
ebda057499
2 changed files with 9 additions and 0 deletions
|
@ -33,6 +33,7 @@ tactic intros_tactic(list<name> _ns, bool relax_main_opaque) {
|
|||
expr new_t = tc->whnf(t).first;
|
||||
if (!is_pi(new_t))
|
||||
break;
|
||||
t = new_t;
|
||||
}
|
||||
}
|
||||
name new_name;
|
||||
|
|
8
tests/lean/run/366.lean
Normal file
8
tests/lean/run/366.lean
Normal file
|
@ -0,0 +1,8 @@
|
|||
import hott.path
|
||||
open path
|
||||
definition foo (A : Type) : Type := Π (a : A), a ≈ a
|
||||
definition thm : Π (A : Type), foo A :=
|
||||
begin
|
||||
intros,
|
||||
apply idp
|
||||
end
|
Loading…
Reference in a new issue