Box inline class in resume path of suspend call

#KT-41429
This commit is contained in:
Ilmir Usmanov
2020-09-01 20:53:49 +02:00
parent 023cdd7cd4
commit ccc5b7afe0
6 changed files with 87 additions and 19 deletions
@@ -21,7 +21,8 @@ suspend fun signInFlowStepFirst(): Result<Unit> = try {
fun box(): String {
builder {
signInFlowStepFirst()
val res: Result<Unit> = signInFlowStepFirst()
if (res.exceptionOrNull()!!.message != "BOOYA") error("FAIL")
}
continuation!!.resumeWithException(Exception("BOOYA"))
return "OK"