Files
kotlin-fork/compiler/testData/ir/irText/declarations/contextReceivers/contextualFunctionConversion.kt.txt
T
2021-12-02 20:24:56 +03:00

15 lines
330 B
Kotlin
Vendored

fun withContext(f: @ContextFunctionTypeParams(count = 1) 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
}
)
}