li'lfluf
09/05/2026, 1:56 PMclass Foo {
val suffix = "suffix"
fun foo() {}
inner class Bar {
fun bar() {}
}
}
bar() can access suffix via Foo.thisReceiver (=this@Foo?) but foo() can't. Why not?
Instead, foo() must use dispatchReceiverParameter. And, should I be using Foo.thisReceiver in bar()?Pavel Kunyavskiy [JB]
09/05/2026, 4:58 PMli'lfluf
09/05/2026, 5:23 PMsuffix from these two different methods I have to do different things in the transformer while the Kotlin code would be essentially the same.