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: