From e40f33d24476a91fec447233efd2e921ff7c882b Mon Sep 17 00:00:00 2001 From: herbelin Date: Wed, 20 Jun 2012 16:30:08 +0000 Subject: Fixing bug #2817 (occur check was not done up to instantiation of known instances in unification.ml). This refines the fix to bug #1918. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@15459 85f007b7-540e-0410-9357-904b9bb8a0f7 --- test-suite/bugs/closed/shouldsucceed/2817.v | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 test-suite/bugs/closed/shouldsucceed/2817.v (limited to 'test-suite') diff --git a/test-suite/bugs/closed/shouldsucceed/2817.v b/test-suite/bugs/closed/shouldsucceed/2817.v new file mode 100644 index 0000000000..25ac15574c --- /dev/null +++ b/test-suite/bugs/closed/shouldsucceed/2817.v @@ -0,0 +1,8 @@ +(** Occur-check for Meta (up to application of already known instances) *) + +Goal forall (f: nat -> nat -> Prop) (x:bool) + (H: forall (u: nat), f u u -> True) + (H0: forall x0, f (if x then x0 else x0) x0), +False. + +intros; apply H in H0. (* crashes *) -- cgit v1.2.3