lundi 20 avril 2015

scala method name as variable name

I want to define case class demo(notify: String), but IDE(intellij idea) complains that "notify cannot override final member".

I know that notify is a member method of AnyRef and IDE may take variable name for method name. I need a notify field, how can I do that?

Aucun commentaire:

Enregistrer un commentaire