Last active
August 29, 2015 14:10
-
-
Save michalkowol/8c329a089e5b1bcdd51a to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| trait A { | |
| def m: String | |
| } | |
| trait B extends A { | |
| override def m: String = "b" | |
| def b = "b" | |
| } | |
| trait C extends A { | |
| override def m: String = "c" | |
| def c = "c" | |
| } | |
| class BC extends B with C | |
| class CB extends C with B | |
| new BC().m // c | |
| new CB().m // b |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment