Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: fixed braces

...

Consider I have an abstract class B, and two "characteristics" which I'll call A-like, and C-like, represented by traits A and C. I wish to create concrete classes AB, CB, and ABC. This is done via:

abstract class B {{...}
trait A {{ self : B => ... }
trait C {{ self : B => ...}
class AB extends B with A

...