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:
committed by
Roman Golyshev
parent
541ca31584
commit
6f234beb9c
+5
-2
@@ -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
|
||||
Reference in New Issue
Block a user