fix(library/tactic/intros_tactic): seg fault at intros tactic, fixes #366

This commit is contained in:
Leonardo de Moura 2014-12-04 09:26:10 -08:00
parent 1a813fc720
commit ebda057499
2 changed files with 9 additions and 0 deletions

View file

@ -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
View 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