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
























                                                
object 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

}