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

16 lines
368 B
Kotlin
Vendored

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