aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test-suite/success/Case13.v13
1 files changed, 13 insertions, 0 deletions
diff --git a/test-suite/success/Case13.v b/test-suite/success/Case13.v
index 670d01f761..f19e24b88e 100644
--- a/test-suite/success/Case13.v
+++ b/test-suite/success/Case13.v
@@ -54,3 +54,16 @@ Check (fun x : I' 0 => match x with
| C2' _ niln => 0
| _ => 0
end).
+
+(* Check insertion of coercions around matched subterm *)
+
+Parameter A:Set.
+Parameter f:> A -> nat.
+
+Inductive J : Set := D : A -> J.
+
+Check (fun x => match x with
+ | D 0 => 0
+ | D _ => 1
+ end).
+