Introduce Parameter: Add suspend to lambdas with nested suspend-calls
#KT-24712 Fixed
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
// WITH_DEFAULT_VALUE: false
|
||||
suspend fun foo(n: Int) = n
|
||||
|
||||
suspend fun test() {
|
||||
val m = <selection>foo(1)</selection>
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
// WITH_DEFAULT_VALUE: false
|
||||
suspend fun foo(n: Int) = n
|
||||
|
||||
suspend fun test(i: suspend () -> Int) {
|
||||
val m = i()
|
||||
}
|
||||
Reference in New Issue
Block a user