We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f39654 commit ff0921cCopy full SHA for ff0921c
tests/neg/i1653.scala
@@ -1,3 +1,3 @@
1
trait Foo {
2
- def foo() = new Unit with Foo // error
+ def foo() = new Unit with Foo // error: cannot extend final class Unit // error: illegal trait inheritance
3
}
0 commit comments