Open
Description
Before working on this issue, I'd like to check if I'm missing something.
Version 1:
trait A {
def foo(a: Int) = println(s"A.foo $a")
}
trait B extends A
Version 2:
trait A {
def foo(a: Int) = println(s"A.foo $a")
}
trait AA extends A {
override def foo(a: Int) = {
if (a > 0) {
println(s"AA.foo $a")
} else {
super.foo(a)
}
}
}
trait B extends AA
App:
object App {
def main(args: Array[String]): Unit = {
val b = new B {}
b.foo(1)
b.foo(-1)
}
}
I think this is a false positive, but MiMa gives abstract synthetic method AA$$super$foo(Int)Unit in interface AA is inherited by class B in new version.
.
Metadata
Metadata
Assignees
Labels
No labels