KT-1151 Code completion for not imported extension functions - test for completion not-imported function on nullable type
This commit is contained in:
@@ -0,0 +1,12 @@
|
|||||||
|
package first
|
||||||
|
|
||||||
|
fun firstFun() {
|
||||||
|
val a : String? = ""
|
||||||
|
a.hello<caret>
|
||||||
|
}
|
||||||
|
|
||||||
|
// EXIST: helloFun
|
||||||
|
// EXIST: helloFunPreventAutoInsert
|
||||||
|
// EXIST: helloWithParams
|
||||||
|
// ABSENT: helloFake
|
||||||
|
// NUMBER: 3
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
package second
|
||||||
|
|
||||||
|
fun String.helloFun() {
|
||||||
|
}
|
||||||
|
|
||||||
|
fun String.helloWithParams(i : Int) : String {
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
fun String.helloFunPreventAutoInsert() {
|
||||||
|
}
|
||||||
|
|
||||||
|
fun Int.helloFake() {
|
||||||
|
}
|
||||||
@@ -35,6 +35,10 @@ public class JetMultifileBasicCompletionTest extends JetCompletionMultiTestBase
|
|||||||
doFileTest(2);
|
doFileTest(2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void testExtensionOnNullable() throws Exception {
|
||||||
|
doFileTest(2);
|
||||||
|
}
|
||||||
|
|
||||||
public void todotestExtensionProperty() throws Exception {
|
public void todotestExtensionProperty() throws Exception {
|
||||||
doFileTest(2);
|
doFileTest(2);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user