aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Herbelin2015-02-15 11:43:30 +0100
committerHugo Herbelin2015-02-16 12:22:53 +0100
commit5f0a8667e880eeca9e79687091cd8db2256e950c (patch)
treef1cc181cb13a2e84de676c6f63b391ede410bca9
parentec50702d19587d450ffc36afc03a4d48ba0880e3 (diff)
Test for #2946 (trunk bug with let's in unification).
-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 0000000000..d8138e145c
--- /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).