aboutsummaryrefslogtreecommitdiff
path: root/test-suite
diff options
context:
space:
mode:
authorJasper Hugunin2018-10-25 13:58:03 -0700
committerJasper Hugunin2018-11-08 17:20:31 -0800
commit46f6b27f9808848556f88032cb2af0a8a9f6c017 (patch)
tree22ef5639425cac0944be9b49ef6a990bcd9f82d3 /test-suite
parent31825dc11a8e7fea42702182a3015067b0ed1140 (diff)
Standardize handling of Automatic Introduction.
This fixes #8791. We explicitly specify for intro the names of binders which are given by the user. This still can suffer from spurious collisions, see #8819.
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.