class X {
val length = 2
}
fun foo() {
X().run {
~this
this.length
length
this@run.length
this()
run {
length // no highlighting. The receiver is from `run` here.
}
}
}
operator fun X.invoke() {}
public inline fun T.run(block: T.() -> R): R = block()