K2: handle suspend anonymous functions properly in various compiler parts

#KT-58332 Fixed
This commit is contained in:
Mikhail Glukhikh
2023-05-05 11:56:37 +02:00
committed by Space Team
parent aec0def5ca
commit 0906258d03
24 changed files with 95 additions and 19 deletions
@@ -0,0 +1,9 @@
FILE: suspendCallFromAnonymousSuspend.kt
public final fun foo(): R|kotlin/Unit| {
suspend fun <anonymous>(): R|kotlin/Unit| <inline=Unknown> {
R|/bar|()
}
}
public final suspend fun bar(): R|kotlin/Unit| {
}
@@ -0,0 +1,12 @@
// FIR_IDENTICAL
// FIR_DUMP
fun foo() {
suspend fun() {
bar()
}
}
suspend fun bar() {
}