KT-1151 Code completion for not imported extension functions - test for completion not-imported function on nullable type

This commit is contained in:
Nikolay Krasko
2012-02-29 16:09:10 +04:00
parent 1b67699240
commit 84efd8536f
3 changed files with 30 additions and 0 deletions
@@ -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);
}
public void testExtensionOnNullable() throws Exception {
doFileTest(2);
}
public void todotestExtensionProperty() throws Exception {
doFileTest(2);
}