aboutsummaryrefslogblamecommitdiff
path: root/tests/pos/t0599.scala
blob: 6445fa9fb75450a9f6d9e02da647156685b47fea (plain) (tree)
1
2
3
4
5
6
7
8
9








                           

                                                 






                                          
abstract class FooA {
    type A <: Ax;
    abstract class Ax;
    abstract class InnerA {
      type B <: A;
      def doB : B;
    }
  }
  trait FooB extends FooA {
    type A <: Axx;
    trait Axx extends super.Ax { def xxx : Int; }
    abstract class InnerB extends InnerA {
      // type B <: A;
      val a : A = doB;
      a.xxx;
      doB.xxx;
    }
  }