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

karelpeeters

07/28/2017, 5:51 PM
But what does
this
refer to inside that method?
d

diesieben07

07/28/2017, 5:54 PM
It's the receiver of the extension function. You can use
this@MyClass
to get to the instance of the class containing the extension function.
k

karelpeeters

07/28/2017, 5:54 PM
Ah nice, the
@
thing shows up again.
4 Views