aboutsummaryrefslogblamecommitdiff
path: root/tests/neg/moduleSubtyping.scala
blob: 18e93d5ac616ea12e5f932f9f6c51bcb32072ea0 (plain) (tree)






















                              
class C {

  object o {

    var a: C.this.o.type = ???
    var b: this.type = ???
    a = b   // OK
    b = a   // OK

    var c: Test.o.type = ???
    a = c   // error
    b = c   // error
    c = a   // error
    c = b   // error
  }

}

object Test extends C {



}