Replace trivial usages of suspendCoroutineOrReturn in tests
This is necessary since suspendCoroutineOrReturn gets removed in 1.3
This commit is contained in:
@@ -22,7 +22,7 @@ fun builder(c: suspend () -> Unit) {
|
||||
|
||||
var i = 0;
|
||||
|
||||
suspend fun suspendHere() = suspendCoroutineOrReturn<Unit> {
|
||||
suspend fun suspendHere() = suspendCoroutineUninterceptedOrReturn<Unit> {
|
||||
i++
|
||||
COROUTINE_SUSPENDED
|
||||
}
|
||||
@@ -39,4 +39,4 @@ fun box(): String {
|
||||
}
|
||||
if (i != 1) return "FAIL"
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
|
||||
+2
-2
@@ -27,7 +27,7 @@ fun builder(c: suspend () -> Unit) {
|
||||
|
||||
var i = 0;
|
||||
|
||||
suspend fun suspendHere() = suspendCoroutineOrReturn<Unit> {
|
||||
suspend fun suspendHere() = suspendCoroutineUninterceptedOrReturn<Unit> {
|
||||
i++
|
||||
COROUTINE_SUSPENDED
|
||||
}
|
||||
@@ -44,4 +44,4 @@ fun box(): String {
|
||||
}
|
||||
if (i != 1) return "FAIL $i"
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
|
||||
+2
-2
@@ -9,7 +9,7 @@ import helpers.*
|
||||
|
||||
var i = 0;
|
||||
|
||||
suspend fun suspendHere() = suspendCoroutineOrReturn<Unit> {
|
||||
suspend fun suspendHere() = suspendCoroutineUninterceptedOrReturn<Unit> {
|
||||
i++
|
||||
COROUTINE_SUSPENDED
|
||||
}
|
||||
@@ -44,4 +44,4 @@ fun box(): String {
|
||||
}
|
||||
if (i != 1) return "FAIL 2"
|
||||
return res
|
||||
}
|
||||
}
|
||||
|
||||
@@ -49,7 +49,7 @@ fun builder(c: suspend () -> Unit) {
|
||||
|
||||
var i = 0;
|
||||
|
||||
suspend fun suspendHere() = suspendCoroutineOrReturn<Unit> {
|
||||
suspend fun suspendHere() = suspendCoroutineUninterceptedOrReturn<Unit> {
|
||||
i++
|
||||
COROUTINE_SUSPENDED
|
||||
}
|
||||
@@ -66,4 +66,4 @@ fun box(): String {
|
||||
}
|
||||
if (i != 1) return "FAIL $i"
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
|
||||
+2
-2
@@ -28,7 +28,7 @@ fun builder(c: suspend () -> Unit) {
|
||||
|
||||
var i = 0;
|
||||
|
||||
suspend fun suspendHere() = suspendCoroutineOrReturn<Unit> {
|
||||
suspend fun suspendHere() = suspendCoroutineUninterceptedOrReturn<Unit> {
|
||||
i++
|
||||
COROUTINE_SUSPENDED
|
||||
}
|
||||
@@ -66,4 +66,4 @@ fun box(): String {
|
||||
}
|
||||
if (i != 1) return "FAIL $i"
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -30,7 +30,7 @@ fun builder(c: suspend () -> Unit) {
|
||||
|
||||
var i = 0;
|
||||
|
||||
suspend fun suspendHere() = suspendCoroutineOrReturn<Unit> {
|
||||
suspend fun suspendHere() = suspendCoroutineUninterceptedOrReturn<Unit> {
|
||||
i++
|
||||
COROUTINE_SUSPENDED
|
||||
}
|
||||
@@ -47,4 +47,4 @@ fun box(): String {
|
||||
}
|
||||
if (i != 1) return "FAIL $i"
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
|
||||
+2
-2
@@ -35,7 +35,7 @@ fun builder(c: suspend () -> Unit) {
|
||||
|
||||
var i = 0;
|
||||
|
||||
suspend fun suspendHere() = suspendCoroutineOrReturn<Unit> {
|
||||
suspend fun suspendHere() = suspendCoroutineUninterceptedOrReturn<Unit> {
|
||||
i++
|
||||
COROUTINE_SUSPENDED
|
||||
}
|
||||
@@ -52,4 +52,4 @@ fun box(): String {
|
||||
}
|
||||
if (i != 1) return "FAIL $i"
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
|
||||
Vendored
+2
-2
@@ -9,7 +9,7 @@ import helpers.*
|
||||
|
||||
var i = 0;
|
||||
|
||||
suspend fun suspendHere() = suspendCoroutineOrReturn<Unit> {
|
||||
suspend fun suspendHere() = suspendCoroutineUninterceptedOrReturn<Unit> {
|
||||
i++
|
||||
COROUTINE_SUSPENDED
|
||||
}
|
||||
@@ -50,4 +50,4 @@ fun box(): String {
|
||||
}
|
||||
if (i != 1) return "FAIL 2"
|
||||
return res
|
||||
}
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@ fun builder(c: suspend () -> Unit) {
|
||||
|
||||
var i = 0;
|
||||
|
||||
suspend fun suspendHere() = suspendCoroutineOrReturn<Unit> {
|
||||
suspend fun suspendHere() = suspendCoroutineUninterceptedOrReturn<Unit> {
|
||||
i++
|
||||
COROUTINE_SUSPENDED
|
||||
}
|
||||
@@ -39,4 +39,4 @@ fun box(): String {
|
||||
}
|
||||
if (i != 1) return "FAIL"
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user