KT-34414 Make sure completion for suspend functional parameters works too

- Replace `isFunctionType` with `isBuiltinFunctionalType` where it is relevant
- ^KT-34414 Fixed
This commit is contained in:
Roman Golyshev
2019-11-21 19:59:16 +03:00
committed by Roman Golyshev
parent 541ca31584
commit 6f234beb9c
4 changed files with 10 additions and 6 deletions
@@ -1,9 +1,12 @@
interface I : suspend () -> Unit
fun xfoo(p: suspend () -> Unit) {}
fun test() {
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:"(p: suspend () -> Unit) (<root>)", typeText:"Unit" }
// EXIST: { itemText:"xfoo", tailText:"(action) (<root>)", typeText:"Unit" }
// EXIST: { itemText:"xfoo", tailText:"(i) (<root>)", typeText:"Unit" }
// NOTHING_ELSE