You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My intention is that I do not want to introduce a redundant variable just for assigning to trait parameter.
traitHasId(varid:String)
caseclassEntity(varidJustForAssignment:String) extendsHasId(idJustForAssignment)
valentity=Entity("id")
entity.id
entity.idJustForAssignment // this is a duplication
and this does not work:
traitHasId(varid:String)
caseclassEntity(id: String) extendsHasId(id) // and this works when it's a normal class not a case class