aboutsummaryrefslogblamecommitdiff
path: root/tests/neg/i324.scala
blob: e36718a554e0da8d1a1e7943f9d88e194a97510e (plain) (tree)
1
2
3
4
5

          

                                                                    
 
class O
object O {
   val x: this.type = OO.this // error: OO is not an enclosing class
   val y: O = OO.this // error: OO is not an enclosing class
}