Extension callables index and its use in completion
This commit is contained in:
+4
-1
@@ -1,6 +1,6 @@
|
||||
package second
|
||||
|
||||
fun String.helloFun() {
|
||||
fun String?.helloFun() {
|
||||
}
|
||||
|
||||
fun String.helloWithParams(i : Int) : String {
|
||||
@@ -10,5 +10,8 @@ fun String.helloWithParams(i : Int) : String {
|
||||
fun String.helloFunPreventAutoInsert() {
|
||||
}
|
||||
|
||||
fun <T: CharSequence> T.helloFunGeneric() {
|
||||
}
|
||||
|
||||
fun Int.helloFake() {
|
||||
}
|
||||
+2
-1
@@ -8,5 +8,6 @@ fun firstFun() {
|
||||
// EXIST: helloFun
|
||||
// EXIST: helloFunPreventAutoInsert
|
||||
// EXIST: helloWithParams
|
||||
// EXIST: helloFunGeneric
|
||||
// ABSENT: helloFake
|
||||
// NUMBER: 3
|
||||
// NUMBER: 4
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
package second
|
||||
|
||||
fun (() -> Unit)?.helloFun1() {
|
||||
}
|
||||
|
||||
fun Function0<Unit>.helloFun2() {
|
||||
}
|
||||
|
||||
fun ExtensionFunction0<String, Unit>.helloFun3() {
|
||||
}
|
||||
|
||||
fun Function1<String, Unit>.helloFun4() {
|
||||
}
|
||||
|
||||
fun Any.helloAny() {
|
||||
}
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
package first
|
||||
|
||||
fun firstFun(p: () -> Unit) {
|
||||
p.hello<caret>
|
||||
}
|
||||
|
||||
// EXIST: helloFun1
|
||||
// EXIST: helloFun2
|
||||
// EXIST: helloAny
|
||||
// ABSENT: helloFun3
|
||||
// ABSENT: helloFun4
|
||||
// NUMBER: 3
|
||||
Reference in New Issue
Block a user