Closed
Description
Compiler version
3.2.1 and 3.2.2
Minimized code
trait Companion:
final override def toString: String = "Companion"
case class Example(value: Int)
object Example extends Companion
Output
error overriding method toString in trait Companion of type => String;
method toString of type => String cannot override final member method toString in trait Companion
case class Example(value: Int)
Expectation
Companion object inherits toString implementation from the trait.