Last active
December 12, 2015 00:28
-
-
Save ogirardot/4683919 to your computer and use it in GitHub Desktop.
Simple gist to show problem when using companion object extending trait and sub-class using the same trait
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
object MyApp extends App { | |
val b = new B() | |
} | |
trait Conflictor { | |
val log = "reduction" | |
} | |
class A {} | |
object A extends Conflictor {} | |
class B extends A with Conflictor {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This one works :