Closed csoren closed 10 years ago
case class clazz(x: Int) { def toString = x.toString }
case class clazz(x: Int) { override def toString = x.toString }
yep the first one should give a compiler error
This code produces neither error nor output:
case class clazz(x: Int) { def toString = x.toString }
This does:
case class clazz(x: Int) { override def toString = x.toString }