https://kotlinlang.org logo
#announcements
Title
# announcements
f

fatih.yalmanbas

11/09/2017, 11:34 AM
Copy code
class x{
    val field;

    X?.foo(){
        this.field = doSomething();
    }
}
s

snrostov

11/09/2017, 11:36 AM
this@x.field = doSometing()
(If I correctly understand what you need)
f

fatih.yalmanbas

11/09/2017, 11:37 AM
something like that
The real problem is that I am trying to add an extension function inside the same class (for null safe call on target)
even though function is tail recursive, compiler keeps telling me that it can not find a tail call
2 Views