CodeBrew-io / Issues

Submit new issues here
4 stars 1 forks source link

Code not evaluated when "override" needed #11

Closed csoren closed 10 years ago

csoren commented 10 years ago

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 }

MasseGuillaume commented 10 years ago

yep the first one should give a compiler error