Skip to content

Instantly share code, notes, and snippets.

@ponzao
Created May 10, 2011 08:31
Show Gist options
  • Save ponzao/964105 to your computer and use it in GitHub Desktop.
Save ponzao/964105 to your computer and use it in GitHub Desktop.
class C { def b = "b" }
trait T extends C { override def b = "trait b" }
val c = new C with T
c.b // => java.lang.String = trait b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment