aboutsummaryrefslogtreecommitdiff
path: root/test-suite
diff options
context:
space:
mode:
authorPierre-Marie Pédrot2018-11-09 15:08:58 +0100
committerPierre-Marie Pédrot2018-11-09 15:08:58 +0100
commit5d90e05b35f85607c43888b9adb0319e98a81fb4 (patch)
tree25787c6f6bc8ecdf601edbdacb5edb16733aaea0 /test-suite
parent720a2f6e881cd2df93bc775f331c3444bebd5980 (diff)
parent46f6b27f9808848556f88032cb2af0a8a9f6c017 (diff)
Merge PR #8820: Standardize handling of Automatic Introduction.
Diffstat (limited to 'test-suite')
-rw-r--r--test-suite/bugs/closed/bug_8791.v9
1 files changed, 9 insertions, 0 deletions
diff --git a/test-suite/bugs/closed/bug_8791.v b/test-suite/bugs/closed/bug_8791.v
new file mode 100644
index 0000000000..9be1936cdf
--- /dev/null
+++ b/test-suite/bugs/closed/bug_8791.v
@@ -0,0 +1,9 @@
+Class Inhabited (A : Type) : Type := populate { inhabitant : A }.
+
+Definition A := 42.
+
+Instance foo (A: Type): Inhabited (list A).
+Check A.
+Abort.
+
+Fail Instance foo (A : nat) (A : Type) : Inhabited nat.