973adb6a38
If they fail on other backends, use the IGNORE_BACKEND directive instead
11 lines
215 B
Kotlin
Vendored
11 lines
215 B
Kotlin
Vendored
// !LANGUAGE: +ContextReceivers
|
|
|
|
fun withContext(f: context(String) () -> String) = f("OK")
|
|
|
|
fun callWithContext(f: (String) -> String) = withContext(f)
|
|
|
|
fun box(): String {
|
|
return callWithContext { s -> s }
|
|
}
|
|
|