myaa
05/27/2020, 5:21 PMthis
object from a delegated extension property? i'm trying to do something like this:
val Project.myProp by MyDelegate(this)
where this
should be the Project
instance that myProp
was accessed through, but i'm getting the error that 'this' is not defined in this context
if it matters, i'm trying to write an extension property for gradle
edit: sorry, i'm dumb. i forgot that delegates literally get the receiver as the first argument to getValue
. disregard this.