Files
kotlin-fork/compiler/testData/ir/irText/declarations/contextReceivers/contextualFunctionConversion.fir.kt.txt
T
2022-04-06 16:05:40 +00:00

15 lines
292 B
Plaintext
Vendored

fun withContext(f: Function1<String, String>): String {
return f.invoke(p1 = "OK")
}
fun callWithContext(f: Function1<String, String>): String {
return withContext(f = f)
}
fun box(): String {
return callWithContext(f = local fun <anonymous>(s: String): String {
return s
}
)
}