aboutsummaryrefslogtreecommitdiff
path: root/test-suite/failure/pattern.v
diff options
context:
space:
mode:
Diffstat (limited to 'test-suite/failure/pattern.v')
-rw-r--r--test-suite/failure/pattern.v10
1 files changed, 10 insertions, 0 deletions
diff --git a/test-suite/failure/pattern.v b/test-suite/failure/pattern.v
new file mode 100644
index 0000000000..480f579502
--- /dev/null
+++ b/test-suite/failure/pattern.v
@@ -0,0 +1,10 @@
+(* Check that untypable beta-expansion are trapped *)
+
+Variable A : nat -> Type.
+Variable n : nat.
+Variable P : forall m : nat, m = n -> Prop.
+
+Goal forall p : n = n, P n p.
+intro.
+Fail pattern n, p.
+Abort.