K1/K2: allow to apply suspend modifier to anonymous function

#KT-57991 Fixed
This commit is contained in:
Mikhail Glukhikh
2023-04-15 11:12:34 +02:00
committed by Space Team
parent 0dbf698653
commit 2ccad553e6
2 changed files with 7 additions and 2 deletions
@@ -2,7 +2,7 @@
// ISSUE: KT-57991
fun foo() {
<!WRONG_MODIFIER_TARGET!>suspend<!> fun() {
suspend fun() {
}
}