Skip to content

Instantly share code, notes, and snippets.

@casualjim
Created January 31, 2012 14:32
Show Gist options
  • Save casualjim/1710791 to your computer and use it in GitHub Desktop.
Save casualjim/1710791 to your computer and use it in GitHub Desktop.
class A {
def a = "a"
val aa = "aa"
}
object B { this: A =>
def b = "b"
val bb = "bb"
}
class C extends A with B
println((new C).a)
println(B.b)
// vim: set ts=2 sw=2 et:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment