class S extends J {
override def foo(x: String): String = ???
}
Notice that the method in J has type String|Null => String|Null and the one in S is String => String. But we're considering allowing the (unsound) override to go through for easier interop.
We should be able to extend the Java class
with the Scala class
Notice that the method in
J
has typeString|Null => String|Null
and the one inS
isString => String
. But we're considering allowing the (unsound) override to go through for easier interop.