summaryrefslogblamecommitdiff
path: root/test/files/neg/override.scala
blob: 79755160619cd269f8ff23eedf03060aee0c5da9 (plain) (tree)
1
2
3
4
5
6
7
8
9







                                        
                                          


           
                         

          
trait X {
  trait A { type T >: Int <: Int }
  val x : A
  var n : x.T = 3
}

trait Y extends X {
  trait B { type T >: String <: String }
  lazy val x : A with B = {println(""); x}
  n = "foo"
}

object Test extends App {
  new Y {}
}