class Bar { override def toString() = "Bar" }
case class Foo(s: String) extends Bar
Foo("bar") // "Bar"
Why doesn't Foo
get it's toString
generated? Is it a bug or is there actually a reason? Is there any way to "get it back" (is there a default implementation somewhere that works for case classes perhaps)?