Why won't it let you pass `this`?
# getting-started
k
Why won't it let you pass
this
?
m
The error says the type signature is
KProperty1<out Site, Any?>
, so it won't let me pass
this
(of type Site) to a function call. But the interface for KProperty1 says the out param is the second one? That's so confusing.
Apparently, you can do
prop.getter.call(this)
for public properties, which mine unfortunately isn't.