Move test from js to common part
This commit is contained in:
@@ -1,27 +0,0 @@
|
||||
// EXPECTED_REACHABLE_NODES: 1305
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
|
||||
import kotlin.coroutines.*
|
||||
|
||||
suspend inline fun doTwice(block: suspend () -> Unit) {
|
||||
block()
|
||||
block()
|
||||
}
|
||||
|
||||
var testResult: String = ""
|
||||
|
||||
fun build(c: suspend () -> Unit) {
|
||||
c.startCoroutine(Continuation<Unit>(EmptyCoroutineContext) { })
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
|
||||
build {
|
||||
doTwice {
|
||||
testResult += "OK"
|
||||
return@build
|
||||
}
|
||||
}
|
||||
|
||||
return testResult
|
||||
}
|
||||
Reference in New Issue
Block a user