Files
kotlin-fork/compiler/testData/ir/irText/declarations/contextReceivers/function.kt.txt
T
2024-02-16 10:19:38 +00:00

25 lines
341 B
Kotlin
Vendored

class C {
val c: Int
field = 42
get
constructor() /* primary */ {
super/*Any*/()
/* <init>() */
}
}
fun bar(c: C) {
with<C, Unit>(receiver = c, block = local fun C.<anonymous>() {
foo($context_receiver_0 = $this$with)
}
)
}
fun foo($context_receiver_0: C) {
$context_receiver_0.<get-c>() /*~> Unit */
}