K2: handle suspend anonymous functions properly in various compiler parts
#KT-58332 Fixed
This commit is contained in:
committed by
Space Team
parent
aec0def5ca
commit
0906258d03
Vendored
+9
@@ -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| {
|
||||
}
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
// FIR_IDENTICAL
|
||||
// FIR_DUMP
|
||||
|
||||
fun foo() {
|
||||
suspend fun() {
|
||||
bar()
|
||||
}
|
||||
}
|
||||
|
||||
suspend fun bar() {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user