You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
abstract class A {
protected[this] def m(): Int = 1
}
object B {
private def m(i: Int) = 2
private final class Composite() extends A {
def test = m()
}
}
Output
Reference to m is ambiguous,
it is both defined in objectB
and inherited subsequently in classComposite
Expectation
Compilation to succeed, like in scala 2
The text was updated successfully, but these errors were encountered:
Minimized code
Output
Expectation
Compilation to succeed, like in scala 2
The text was updated successfully, but these errors were encountered: