Join Slack
Powered by
But what does `this` refer to inside that method?
# 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
Open in Slack
Previous
Next