aboutsummaryrefslogblamecommitdiff
path: root/tests/neg/i50-volatile.scala
blob: 9098b47d6995f9e050ebd1c07c6799d102c7d257 (plain) (tree)
1
            























                                                
class Test {
  class Base {
    class Inner
  }
  type A <: Base {
    type X = String
  }
  type B <: {
    type X = Int
  }
  lazy val o: A & B = ???

  class Client extends o.Inner

  def xToString(x: o.X): String = x

  def intToString(i: Int): String = xToString(i)
}
object Test2 {

  import Test.o._

  def xToString(x: X): String = x

}