fix(library/tmp_type_context): bug at pop()

This commit is contained in:
Leonardo de Moura 2015-12-05 19:14:33 -08:00
parent df567717f8
commit 6193816f6a
2 changed files with 18 additions and 0 deletions

View file

@ -135,6 +135,7 @@ void tmp_type_context::pop() {
lean_assert(m_trail.size() == old_sz);
m_uassignment.resize(s.m_uassignment_sz);
m_eassignment.resize(s.m_eassignment_sz);
m_scopes.pop_back();
}
void tmp_type_context::commit() {

View file

@ -0,0 +1,17 @@
set_option blast.ematch true
variable {A : Type}
definition R : A → A → Prop := sorry
definition R_trans [forward] {a b c : A} : R a b → R b c → R a c := sorry
example (a b c : A) : R a b → R b c → R a c :=
by blast
example {A : Type} (a b c : A) : R a b → R b c → R a c :=
by blast
example {A : Type.{1}} (a b c : A) : R a b → R b c → R a c :=
by blast
universe u
example {A : Type.{u}} (a b c : A) : R a b → R b c → R a c :=
by blast