[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
+1
-1
@@ -4,6 +4,6 @@ fun <T> produce(arg: () -> T): T = arg()
|
||||
|
||||
fun main() {
|
||||
produce {
|
||||
<!ARGUMENT_TYPE_MISMATCH!>suspend fun() {}<!> // CCE
|
||||
<!ARGUMENT_TYPE_MISMATCH!><!ANONYMOUS_SUSPEND_FUNCTION!>suspend<!> fun() {}<!> // CCE
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user