11 lines
189 B
Kotlin
Vendored
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 }
|