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

16 lines
331 B
Kotlin
Vendored

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