[K/JS] Add ingored test for KT-60785 fix until the rr/vgrechko/accidental-reification-2 will be merged
This commit is contained in:
+37
@@ -0,0 +1,37 @@
|
||||
// WITH_STDLIB
|
||||
// EXPECTED_REACHABLE_NODES: 1292
|
||||
// KT-60785
|
||||
// Ignored until the rr/vgrechko/accidental-reification-2 will be merged
|
||||
// IGNORE_BACKEND: JS_IR, JS_IR_ES6
|
||||
|
||||
import kotlin.coroutines.*
|
||||
import kotlin.coroutines.intrinsics.*
|
||||
|
||||
value class SomeValue(val a: String) {
|
||||
override fun toString() = when (a) {
|
||||
"fa" -> "O"
|
||||
"il" -> "K"
|
||||
else -> ""
|
||||
}
|
||||
}
|
||||
|
||||
suspend fun foo() = mapOf(SomeValue("fa") to SomeValue("il"))
|
||||
|
||||
fun builder(c: suspend () -> Unit) {
|
||||
c.startCoroutine(object : Continuation<Unit> {
|
||||
override val context = EmptyCoroutineContext
|
||||
override fun resumeWith(result: Result<Unit>) {}
|
||||
})
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
var result = ""
|
||||
|
||||
builder {
|
||||
for ((k, v) in foo()) {
|
||||
result += "$k$v"
|
||||
}
|
||||
}
|
||||
|
||||
return result
|
||||
}
|
||||
Reference in New Issue
Block a user