summaryrefslogblamecommitdiff
path: root/test/files/pos/t261-ba.scala
blob: 6c9c5b10b77622f69be14727d910f8f240917c17 (plain) (tree)
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 App with B with A {
  println(foo) // prints "A", as expected
  f            // prints "B", as expected
}