Scala 3's multiple inheritance is a bit different from Scala 2's. It feels quirky in the context of Scala 2, but the rules are easier to understand. Traits can now take parameters, but you're only allowed to apply them in the extends clause of a class (not another trait).
I think that an example would be any where you mixin a trait which has just one abstract def (and other members which depend on it) and you need to *implement* the abstract def, rather than just specifying it positionally.
-
-
That may make it sound unspectacular as a new feature, but that may be fair: it's more a "routine convenience" than a "dramatic enhancement".
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
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.