summaryrefslogblamecommitdiff
path: root/test/files/run/preinits.scala
blob: 6566c4086b55a2abf02b33297eb5a87c9b23eb98 (plain) (tree)
1
2
3
4
5
6


                                                              
                                       

            
trait A { val x: Int; println("A") }
trait B extends { override val x = 1 } with A { println("B") }
trait C extends { override val x = 2 } with A
object Test extends B with C with App {
  println(x)
}