[FIR] Prohibit suspend anonymous functions in statement position
^KT-62018 Fixed ^KT-62019
This commit is contained in:
committed by
Space Team
parent
cae6e0ee0f
commit
fb00c1dfb6
Vendored
+11
@@ -0,0 +1,11 @@
|
||||
// FIR_DUMP
|
||||
|
||||
fun foo() {
|
||||
<!ANONYMOUS_SUSPEND_FUNCTION!>suspend<!> fun() {
|
||||
bar()
|
||||
}
|
||||
}
|
||||
|
||||
suspend fun bar() {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user