class Outer {
def apply( position : Inner ) {}
class Inner
apply(new Inner)
this (new Inner) // error
}
class Outer {
self =>
def apply( position : Inner ) : Boolean = true
class Inner( ) {
def testMe = {
self.apply( this ) // a) this works
self( this ) // b) this does not work!
}
}
}
https://groups.google.com/d/msg/scala-user/U2kDHtUxZy4/ZeNGqX0Uu10J