[PSI2IR] Support context receivers on classes
This commit is contained in:
committed by
TeamCityServer
parent
307f318c9e
commit
aaabf5e1ca
@@ -0,0 +1,13 @@
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
// IGNORE_BACKEND_FIR: JVM_IR
|
||||
// WITH_RUNTIME
|
||||
|
||||
context(Collection<P>) class A<P> {
|
||||
val result = if (!isEmpty()) "OK" else "fail"
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
with (listOf(1, 2, 3)) {
|
||||
return A().result
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user