Created
January 14, 2015 04:51
-
-
Save ostretsov/23cbbe3d141dd49c760d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Animal | |
trait Furry extends Animal | |
trait HasLegs extends Animal | |
class Cat extends Animal with Furry with HasLegs | |
class Dog extends Furry with HasLegs | |
class Dog with Furry with HasLegs // won't work |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment