FIR: fix suspend type serialization

This commit is contained in:
Mikhail Glukhikh
2021-01-20 17:21:08 +03:00
parent afe335e504
commit 4cd6266bce
8 changed files with 64 additions and 22 deletions
+19
View File
@@ -0,0 +1,19 @@
// TARGET_BACKEND: JVM
// IGNORE_BACKEND: JVM
// MODULE: lib
// FILE: A.kt
class CoroutineScope
suspend fun <T> runWithTimeout(
block: suspend CoroutineScope.() -> T
): T? = null
// MODULE: main(lib)
// FILE: B.kt
suspend fun foo(): Boolean = runWithTimeout {
false
} ?: true
fun box(): String = "OK"