TIL one can override vars in Scala, after all. You just need to pass -Yoverride-vars
I can't remember. Could it be issues with overriding `def foo_=(x)` XOR `def foo`?
-
-
you're only overriding the accessors; can't affect which class has the backing field, nor its type
-
Indeed. That’s what I would expect, given that vars are specced as equivalent to getter+setter.
- Show replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.