JVM_IR: Unbox inline classes in suspend functions

if the function can be verified to safely returning unboxed
inline class.
Box the return value on resume path.
This commit is contained in:
Ilmir Usmanov
2020-09-16 06:22:14 +02:00
parent ccc9b757c0
commit f22f10febb
9 changed files with 95 additions and 23 deletions

View File

@@ -1,5 +1,3 @@
// IGNORE_BACKEND: JVM_IR
@Suppress("RESULT_CLASS_IN_RETURN_TYPE")
suspend fun signInFlowStepFirst(): Result<Unit> = Result.success(Unit)