aboutsummaryrefslogtreecommitdiff
path: root/test-suite
diff options
context:
space:
mode:
authorPierre-Marie Pédrot2020-07-26 15:47:57 +0200
committerPierre-Marie Pédrot2020-07-26 15:47:57 +0200
commit91aef2ce0368b017bb20d7b683b907eb2a1847a9 (patch)
tree498ea9e76bbfcf816d2c07ec4793836b8c4fbe79 /test-suite
parent55f4095fe3c366a9f310584a55e2dc0605e5409c (diff)
parent37ba76b1ba6f4f5edcf05d69e6a21a46fef026d9 (diff)
Merge PR #12573: Hint Opaque/Transparent/Unfold: don't error on Opaque Defined constants
Reviewed-by: ppedrot
Diffstat (limited to 'test-suite')
-rw-r--r--test-suite/bugs/closed/bug_12566_1.v16
1 files changed, 16 insertions, 0 deletions
diff --git a/test-suite/bugs/closed/bug_12566_1.v b/test-suite/bugs/closed/bug_12566_1.v
new file mode 100644
index 0000000000..22d95949bb
--- /dev/null
+++ b/test-suite/bugs/closed/bug_12566_1.v
@@ -0,0 +1,16 @@
+
+Class C (n:nat) := c{}.
+
+Instance c0 : C 0 := {}.
+
+Definition x := 0.
+
+Opaque x.
+
+Type _ : C x.
+(* this is maybe wrong behaviour, if it changes just update the test *)
+
+Hint Opaque x : typeclass_instances.
+Transparent x.
+
+Fail Type _ : C x.