Support coroutines in Android box tests

This commit is contained in:
Mikhael Bogdanov
2018-10-24 11:07:16 +02:00
parent ae0b2405bc
commit 612ca87aa3
3 changed files with 17 additions and 7 deletions
@@ -12,11 +12,12 @@ inline suspend fun foo(x: suspend () -> String) = x()
// WITH_RUNTIME
// WITH_COROUTINES
import helpers.ContinuationAdapter
import kotlin.coroutines.*
import kotlin.coroutines.intrinsics.*
fun builder(c: suspend () -> Unit) {
c.startCoroutine(object: helpers.ContinuationAdapter<Unit>() {
c.startCoroutine(object: ContinuationAdapter<Unit>() {
override fun resume(value: Unit) {
}