summaryrefslogtreecommitdiff
path: root/test-suite/bugs/closed/2946.v
diff options
context:
space:
mode:
Diffstat (limited to 'test-suite/bugs/closed/2946.v')
-rw-r--r--test-suite/bugs/closed/2946.v8
1 files changed, 8 insertions, 0 deletions
diff --git a/test-suite/bugs/closed/2946.v b/test-suite/bugs/closed/2946.v
new file mode 100644
index 00000000..d8138e14
--- /dev/null
+++ b/test-suite/bugs/closed/2946.v
@@ -0,0 +1,8 @@
+Lemma toto (E : nat -> nat -> Prop) (x y : nat)
+ (Ex_ : forall z, E x z) (E_y : forall z, E z y) : True.
+
+(* OK *)
+assert (pairE1 := let Exy := _ in (Ex_ y, E_y _) : Exy * Exy).
+
+(* FAIL *)
+assert (pairE2 := let Exy := _ in (Ex_ _, E_y x) : Exy * Exy).