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

15 lines
289 B
Plaintext
Vendored

fun foo(<this>: Int, <this>: String): Int {
return <this>.plus(other = 42)
}
fun foo(<this>: Int): Int {
return <this>.plus(other = 42)
}
fun test() {
with<Int, Int>(receiver = 42, block = local fun Int.<anonymous>(): Int {
return foo(<this> = $this$with)
}
) /*~> Unit */
}