aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/neg/t0816.check
diff options
context:
space:
mode:
Diffstat (limited to 'tests/untried/neg/t0816.check')
-rw-r--r--tests/untried/neg/t0816.check4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/untried/neg/t0816.check b/tests/untried/neg/t0816.check
new file mode 100644
index 000000000..48f37c141
--- /dev/null
+++ b/tests/untried/neg/t0816.check
@@ -0,0 +1,4 @@
+t0816.scala:5: error: case class Ctest has case ancestor Btest, but case-to-case inheritance is prohibited. To overcome this limitation, use extractors to pattern match on non-leaf nodes.
+case class Ctest(override val data: String) extends Btest(data, true)
+ ^
+one error found