aboutsummaryrefslogblamecommitdiff
path: root/tests/run/t5162.scala
blob: e4ad9ff8d2a6b08360eef4dce4dbddb99dec2dd0 (plain) (tree)


















                                                              
// In run, rather than pos, to check for problems like SI-4283
object O1 {
  private[O1] class Base {
    def foo: Int = 0
  }
  class Mediator extends Base
}

object O2 {
  class Derived extends O1.Mediator {
    override def foo: Int = super.foo
  }
}

object Test {
  def main(args: Array[String]): Unit = {
    new O2.Derived().foo
  }
}