Extract carrier value from continuation result

Otherwise incorrect type gets into continuation: SuccessOrFailure<T> instead of T.
This commit is contained in:
Ilya Gorbunov
2018-09-05 19:43:10 +03:00
parent 94096bba26
commit 700e6fc5e3
@@ -27,7 +27,7 @@ internal actual constructor(
val cur = this.result
when {
cur === UNDECIDED -> {
this.result = result
this.result = result.value
}
cur === COROUTINE_SUSPENDED -> {
this.result = RESUMED