If the last argument of a function is a suspend function,
suggest trailing lambda variant in completion.
This commit is contained in:
committed by
Stanislav Erokhin
parent
f9d550732e
commit
8e3fd0efc3
+9
@@ -0,0 +1,9 @@
|
||||
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
|
||||
Reference in New Issue
Block a user