Minor. Throw exceptions in test coroutine builders

This commit is contained in:
Ilmir Usmanov
2021-02-02 16:47:32 +01:00
parent 52e22796e1
commit a30a961cf5
8 changed files with 24 additions and 8 deletions
@@ -16,7 +16,9 @@ suspend fun returnsUnboxed() = InlineClass("")
suspend fun test(): String = returnsUnboxed().ok()
fun builder(c: suspend () -> Unit) {
c.startCoroutine(Continuation(EmptyCoroutineContext) {})
c.startCoroutine(Continuation(EmptyCoroutineContext) {
it.getOrThrow()
})
}
fun box(): String {