Files
kotlin-fork/idea/testData/quickfix/modifiers/suspend/inLambda2.kt
T
Toshiaki Kameyama b9a220c624 AddSuspendModifierFix: suggest in inline lambda
#KT-38139 Fixed
2020-07-16 18:49:29 +03:00

17 lines
382 B
Kotlin
Vendored

// "Make test suspend" "false"
// DISABLE-ERRORS
// ACTION: Convert to single-line lambda
// ACTION: Enable a trailing comma by default in the formatter
// ACTION: Introduce import alias
// ACTION: Move lambda argument into parentheses
// ACTION: Specify explicit lambda signature
suspend fun foo() {}
fun bar(f: () -> Unit) {
}
fun test() {
bar {
<caret>foo()
}
}