Files
kotlin-fork/compiler/testData/codegen/box/extensionFunctions/contextReceivers/passingLambdaToContextualParam.kt
T
2022-04-06 16:05:39 +00:00

11 lines
189 B
Kotlin
Vendored

// !LANGUAGE: +ContextReceivers
// TARGET_BACKEND: JVM_IR
class C {
val result = "OK"
}
fun contextual(f: context(C) () -> String) = f(C())
fun box(): String = contextual { result }