aboutsummaryrefslogtreecommitdiff
path: root/test-suite
diff options
context:
space:
mode:
authorMaxime Dénès2017-09-15 09:37:09 +0200
committerMaxime Dénès2017-09-15 09:37:09 +0200
commit5c12b6833540f1895d1bb198971d3527e70dce8b (patch)
tree5e306abd84d46a03ba899ba8288b7b96bdb61df2 /test-suite
parenta86bdf0cae05e46d5f0516f29254aeb72bf08de7 (diff)
parent4f64c2fd8af07a46de744af55c4a27834513f446 (diff)
Merge PR #811: Addressing #5434 (ltac pattern-matching refusing to match anonymous variables)
Diffstat (limited to 'test-suite')
-rw-r--r--test-suite/bugs/closed/5434.v18
1 files changed, 18 insertions, 0 deletions
diff --git a/test-suite/bugs/closed/5434.v b/test-suite/bugs/closed/5434.v
new file mode 100644
index 0000000000..5d2460face
--- /dev/null
+++ b/test-suite/bugs/closed/5434.v
@@ -0,0 +1,18 @@
+(* About binders which remain unnamed after typing *)
+
+Global Set Asymmetric Patterns.
+
+Definition proj2_sig_map {A} {P Q : A -> Prop} (f : forall a, P a -> Q a) (x :
+@sig A P) : @sig A Q
+ := let 'exist a p := x in exist Q a (f a p).
+Axioms (feBW' : Type) (g : Prop -> Prop) (f' : feBW' -> Prop).
+Definition foo := @proj2_sig_map feBW' (fun H => True = f' _) (fun H =>
+ g True = g (f' H))
+ (fun (a : feBW') (p : (fun H : feBW' => True =
+ f' H) a) => @f_equal Prop Prop g True (f' a) p).
+Print foo.
+Goal True.
+ lazymatch type of foo with
+ | sig (fun a : ?A => ?P) -> _
+ => pose (fun a : A => a = a /\ P = P)
+ end.