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 5cf340d commit d093f61Copy full SHA for d093f61
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