Files
kotlin-fork/idea/idea-completion/testData/basic/common/highOrderFunctions/SuspendFunction.kt
T
Roman Golyshev 6f234beb9c KT-34414 Make sure completion for suspend functional parameters works too
- Replace `isFunctionType` with `isBuiltinFunctionalType` where it is relevant
- ^KT-34414 Fixed
2019-11-29 14:55:21 +03:00

12 lines
419 B
Kotlin
Vendored

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