summaryrefslogtreecommitdiff
path: root/test/files/pos/bug261-ab.scala
blob: 80699e692ccd2e0665d8c925e64eeefc51bb3045 (plain) (blame)
1
2
3
4
5
6
7
8
9
trait A { val foo: String = "A" }
trait B {
  private val foo: String = "B"
  def f = println(foo)
}
object Test extends Application with B with A {
  println(foo) // prints "A", as expected
  f            // prints "B", as expected
}