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
traitFootraitTop:varfoo:FootraitMiddleextendsTop:deffoo:Foo=???deffoo_=(value: Foo):Unit=???classBottomextendsMiddle:// error overriding variable foo in trait Top of type Foo;// method foo_= of type (value: Foo): Unit cannot override a mutable variableoverridedeffoo_=(value: Foo):Unit=super.foo_=(value)
println("Helo")
If I rewrite Top as
traitTop:deffoo:Foodeffoo_=(value: Foo):Unit
"it works"
problem
I think it should always be possible to override getters and setters for a var.
The text was updated successfully, but these errors were encountered:
reproduction steps
using Scala 3.0.2,
If I rewrite Top as
"it works"
problem
I think it should always be possible to override getters and setters for a
var
.The text was updated successfully, but these errors were encountered: