blob: 47083f31c93a205251d2a2d538c2f2aa93e686de [file]
// LANGUAGE: +ContextReceivers, -ContextParameters
// TARGET_BACKEND: JVM_IR
// IGNORE_BACKEND_K2: ANY
// WITH_STDLIB
context(Collection<P>) class A<P> {
val result = if (!isEmpty()) "OK" else "fail"
}
fun box(): String {
with (listOf(1, 2, 3)) {
return A().result
}
}