KT-12793 Code completion doesn't suggest abstract protected extension methods

#KT-12793 Fixed
This commit is contained in:
Valentin Kipyatkov
2016-07-22 17:54:01 +03:00
parent 88ad00b0bc
commit 6ff91d1399
4 changed files with 24 additions and 1 deletions
@@ -0,0 +1,9 @@
abstract class ProtectedTest {
fun foo() {
"".<caret>
}
abstract protected fun String.bar()
}
// EXIST: bar
@@ -649,6 +649,12 @@ public class JSBasicCompletionTestGenerated extends AbstractJSBasicCompletionTes
doTest(fileName);
}
@TestMetadata("ProtectedExtensionMethod.kt")
public void testProtectedExtensionMethod() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/basic/common/ProtectedExtensionMethod.kt");
doTest(fileName);
}
@TestMetadata("QualifiedSuperMembers.kt")
public void testQualifiedSuperMembers() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/basic/common/QualifiedSuperMembers.kt");
@@ -649,6 +649,12 @@ public class JvmBasicCompletionTestGenerated extends AbstractJvmBasicCompletionT
doTest(fileName);
}
@TestMetadata("ProtectedExtensionMethod.kt")
public void testProtectedExtensionMethod() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/basic/common/ProtectedExtensionMethod.kt");
doTest(fileName);
}
@TestMetadata("QualifiedSuperMembers.kt")
public void testQualifiedSuperMembers() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/basic/common/QualifiedSuperMembers.kt");