aboutsummaryrefslogtreecommitdiff
path: root/test-suite/bugs/closed/bug_9313.v
diff options
context:
space:
mode:
Diffstat (limited to 'test-suite/bugs/closed/bug_9313.v')
-rw-r--r--test-suite/bugs/closed/bug_9313.v13
1 files changed, 13 insertions, 0 deletions
diff --git a/test-suite/bugs/closed/bug_9313.v b/test-suite/bugs/closed/bug_9313.v
new file mode 100644
index 0000000000..0845e7732c
--- /dev/null
+++ b/test-suite/bugs/closed/bug_9313.v
@@ -0,0 +1,13 @@
+Set Implicit Arguments.
+Existing Class True.
+
+Instance foo1 (a : nat) {b : nat} (e : a = b) : True := I.
+Check foo1 (a := 3) (b := 4).
+
+Definition foo2 (a : nat) {b : nat} (e : a = b) : True := I.
+Check foo2 (a := 3) (b := 4).
+
+Instance foo3 (a : nat) {b : nat} (e : a = b) : True.
+exact I.
+Qed.
+Check foo3 (a := 3) (b := 4).