KT-51243 Fix parameterized contextual lambda
^KT-51243 Fixed
This commit is contained in:
committed by
teamcity
parent
efd5beb49b
commit
d857142514
Vendored
+13
@@ -0,0 +1,13 @@
|
||||
// !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
|
||||
}
|
||||
Reference in New Issue
Block a user