aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/neg/t7967.check
diff options
context:
space:
mode:
Diffstat (limited to 'tests/untried/neg/t7967.check')
-rw-r--r--tests/untried/neg/t7967.check9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/untried/neg/t7967.check b/tests/untried/neg/t7967.check
new file mode 100644
index 000000000..cde950dcd
--- /dev/null
+++ b/tests/untried/neg/t7967.check
@@ -0,0 +1,9 @@
+t7967.scala:6: error: illegal inheritance;
+ self-type C does not conform to C's selftype C with B
+ new C {} // fails
+ ^
+t7967.scala:8: error: illegal inheritance;
+ self-type Test.CC does not conform to Test.CC's selftype Test.CC
+ new CC {} // should fail, doesn't
+ ^
+two errors found