blob: c66a68d1018a24985218cfc8f20177dc911a624a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
|
trait B {
private val foo: String = "B"
def f = println(foo)
}
trait A { val foo: String = "A" }
object Test extends Application with B with A {
println(foo) // prints "A", as expected
f // prints "B", as expected
}
|