aboutsummaryrefslogtreecommitdiff
path: root/test-suite
diff options
context:
space:
mode:
authorMaxime Dénès2019-02-13 21:53:15 +0100
committerMaxime Dénès2019-02-13 21:53:15 +0100
commit64eaf184df8ca52b7254a03e3b4f87c3c0491fdd (patch)
tree4abe81d9b619baeeb844a3a3b653a27086ddbf67 /test-suite
parentaa2d7486702433c94bfd645d3a5f6575a9ee729f (diff)
parent737ae4816a9c84369bc1c0a0b359a9fd4f63dbe6 (diff)
Merge PR #9450: Fix #9432: canonical structure and coercion accept universe binders.
Ack-by: SkySkimmer Reviewed-by: Zimmi48 Ack-by: gares Reviewed-by: maximedenes
Diffstat (limited to 'test-suite')
-rw-r--r--test-suite/bugs/closed/bug_9432.v12
1 files changed, 12 insertions, 0 deletions
diff --git a/test-suite/bugs/closed/bug_9432.v b/test-suite/bugs/closed/bug_9432.v
new file mode 100644
index 0000000000..c85f8129ce
--- /dev/null
+++ b/test-suite/bugs/closed/bug_9432.v
@@ -0,0 +1,12 @@
+
+Record foo := { f : Type }.
+
+Fail Canonical Structure xx@{} := {| f := Type |}.
+
+Canonical Structure xx@{i} := {| f := Type@{i} |}.
+
+Fail Coercion cc@{} := fun x : Type => Build_foo x.
+
+Polymorphic Coercion cc@{i} := fun x : Type@{i} => Build_foo x.
+
+Coercion cc1@{i} := (cc@{i}).