Files
kotlin-fork/compiler/testData/ir/irText/declarations/contextReceivers/function.kt.txt
T
Anastasiya Shadrina 3f50b675b1 [Tests] Add irText tests
2021-12-02 20:24:25 +03:00

24 lines
301 B
Plaintext
Vendored

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