casualjim
1/31/2012 - 2:32 PM

gistfile1.scala

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: