summaryrefslogtreecommitdiff
path: root/test/files/pos/return_thistype.scala
blob: f164e06cc0a911f0c1b6ef266445900c02e5570e (plain) (blame)
1
2
3
4
5
6
7
8
// tests transformation of return type in typedTypeApply (see also tcpoly_gm.scala)
class As { 
  class A { 
    def foo: A.this.type = bar.asInstanceOf[A.this.type]
    def foo2: this.type = bar.asInstanceOf[this.type]
    def bar: A = null 
  }
}