Files
kotlin-fork/idea/idea-completion/testData/basic/common/highOrderFunctions/SuspendFunction.kt
T
Dmitry Petrov 8e3fd0efc3 If the last argument of a function is a suspend function,
suggest trailing lambda variant in completion.
2016-12-15 23:58:14 +03:00

9 lines
272 B
Kotlin
Vendored

fun xfoo(p: suspend () -> Unit) {}
fun test() {
xf<caret>
}
// EXIST: { itemText:"xfoo", tailText:" {...} (p: suspend () -> Unit) (<root>)", typeText:"Unit" }
// EXIST: { itemText:"xfoo", tailText:"(p: suspend () -> Unit) (<root>)", typeText:"Unit" }
// NOTHING_ELSE