aboutsummaryrefslogtreecommitdiff
path: root/test-suite/bugs
diff options
context:
space:
mode:
authorGaëtan Gilbert2020-07-02 14:41:38 +0200
committerGaëtan Gilbert2020-07-02 14:41:38 +0200
commita1835c755f07b2199d122632360a5d236cd9984e (patch)
tree747a3d537e26342c1fed3246aff2ba01ee27de8e /test-suite/bugs
parente04fbe4eb39434f50cf6bdf19f6c4be46b73ef44 (diff)
parent93e7eff5e55be0b6ddc68cd90a175e38793c6b62 (diff)
Merge PR #12572: Correctly classify variables as being unfoldable in dnet patterns.
Reviewed-by: SkySkimmer Reviewed-by: maximedenes
Diffstat (limited to 'test-suite/bugs')
-rw-r--r--test-suite/bugs/closed/bug_12571.v20
1 files changed, 20 insertions, 0 deletions
diff --git a/test-suite/bugs/closed/bug_12571.v b/test-suite/bugs/closed/bug_12571.v
new file mode 100644
index 0000000000..c348626921
--- /dev/null
+++ b/test-suite/bugs/closed/bug_12571.v
@@ -0,0 +1,20 @@
+Axiom IsTrunc : Type -> Type.
+
+Existing Class IsTrunc.
+
+Declare Instance trunc_forall :
+ forall (A : Type) (P : A -> Type),
+ IsTrunc (forall a : A, P a).
+
+Axiom Graph : Set.
+Axiom in_N : forall (n : Graph), Type.
+
+Definition N : Type := @sigT Graph in_N.
+
+Goal forall (P : N -> Type)
+ (Q := fun m : Graph => forall mrec : in_N m, P (existT _ m mrec))
+ (A : Graph), IsTrunc (Q A).
+Proof.
+intros.
+solve [typeclasses eauto].
+Qed.