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 8c405ac commit a784915Copy full SHA for a784915
tests/neg/i12828c.scala
@@ -4,7 +4,7 @@ abstract class Foo[A] {
4
abstract class Bar[A] extends Foo[A] {
5
def foo(x: A with String): Unit = println(x.toUpperCase)
6
}
7
-object Baz extends Bar[Int] // error overriding foo: incompatible type
+object Baz extends Bar[Int] // error: not implemented (same as Scala 2)
8
// Scala 2 gives: object creation impossible. Missing implementation for `foo`
9
10
object Test {
0 commit comments