From 2219309681e03b32d0490690374e7f9f6c92b2f4 Mon Sep 17 00:00:00 2001 From: Hugo Herbelin Date: Fri, 12 Sep 2014 14:51:14 +0200 Subject: An old typo which was preventing example #3537 to work the same as it was working in 8.4. --- pretyping/cases.ml | 2 +- test-suite/bugs/closed/3537.v | 12 ++++++++++++ test-suite/bugs/closed/3557.v | 12 ------------ 3 files changed, 13 insertions(+), 13 deletions(-) create mode 100644 test-suite/bugs/closed/3537.v delete mode 100644 test-suite/bugs/closed/3557.v diff --git a/pretyping/cases.ml b/pretyping/cases.ml index d52f410d25..567078f853 100644 --- a/pretyping/cases.ml +++ b/pretyping/cases.ml @@ -1665,7 +1665,7 @@ let build_inversion_problem loc env sigma tms t = patl@pat::patl',acc_sign,acc | (t, NotInd (bo,typ)) :: tms -> let pat,acc = make_patvar t acc in - let d = (alias_of_pat pat,None,t) in + let d = (alias_of_pat pat,None,typ) in let patl,acc_sign,acc = aux (n+1) (push_rel d env) (d::acc_sign) tms acc in pat::patl,acc_sign,acc in let avoid0 = ids_of_context env in diff --git a/test-suite/bugs/closed/3537.v b/test-suite/bugs/closed/3537.v new file mode 100644 index 0000000000..158642f01d --- /dev/null +++ b/test-suite/bugs/closed/3537.v @@ -0,0 +1,12 @@ +(* Another instance of bug #3262, on looping in unification *) + +Inductive bool := true | false. + +Inductive RBT2 : forall a:bool, Type := + Full2 : forall (a b c n:bool), + forall H:RBT2 n, RBT2 n. + +Definition balance4 color p q r := + match color, p, q, r with + | _,_,_,_ => Full2 color p q r + end. diff --git a/test-suite/bugs/closed/3557.v b/test-suite/bugs/closed/3557.v deleted file mode 100644 index 158642f01d..0000000000 --- a/test-suite/bugs/closed/3557.v +++ /dev/null @@ -1,12 +0,0 @@ -(* Another instance of bug #3262, on looping in unification *) - -Inductive bool := true | false. - -Inductive RBT2 : forall a:bool, Type := - Full2 : forall (a b c n:bool), - forall H:RBT2 n, RBT2 n. - -Definition balance4 color p q r := - match color, p, q, r with - | _,_,_,_ => Full2 color p q r - end. -- cgit v1.2.3