d857142514
^KT-51243 Fixed
14 lines
272 B
Kotlin
Vendored
14 lines
272 B
Kotlin
Vendored
// !LANGUAGE: +ContextReceivers
|
|
// TARGET_BACKEND: JVM_IR
|
|
// FIR status: context receivers aren't yet supported
|
|
|
|
class A {
|
|
val result = "OK"
|
|
}
|
|
|
|
fun <T> test(receiver: T, action: context(T) () -> String) = action(receiver)
|
|
|
|
fun box(): String = with(A()) {
|
|
result
|
|
}
|