blob: cde950dcdf6bacb72a75cee0d7932e7bad023fd2 (
plain) (
blame)
1
2
3
4
5
6
7
8
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
|