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
In a Gitter discussion that starts here, I noted that in following this documentation page I created this example, which works as desired:
traitPet(valname:String)
traitFeatheredPetextendsPet// the docs say to do thisclassBird(overridevalname:String) extendsPet(name), FeatheredPet:overridedeftoString=s"bird name: $name"
Then out of curiosity I also tried this, and saw that it works as well:
// this also worksclassBird(overridevalname:String) extendsFeatheredPet:overridedeftoString=s"bird name: $name"
On Gitter, @smarter noted that this second behavior might be an issue, so I’m reporting it here.