KT-12797: Fix completion to show inner classes from base class
#KT-12797 fixed
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
|
||||
abstract class A {
|
||||
inner class InnerInA
|
||||
}
|
||||
|
||||
abstract class B : A() {
|
||||
inner class InnerInB
|
||||
}
|
||||
|
||||
fun foo(b: B) {
|
||||
val v = b.InnerIn<caret>
|
||||
}
|
||||
|
||||
// EXIST: InnerInB
|
||||
// EXIST: InnerInA
|
||||
+6
@@ -470,6 +470,12 @@ public class JSBasicCompletionTestGenerated extends AbstractJSBasicCompletionTes
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("InnerInBaseClass.kt")
|
||||
public void testInnerInBaseClass() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/basic/common/InnerInBaseClass.kt");
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("InsideAnonymousClass.kt")
|
||||
public void testInsideAnonymousClass() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/basic/common/InsideAnonymousClass.kt");
|
||||
|
||||
+6
@@ -470,6 +470,12 @@ public class JvmBasicCompletionTestGenerated extends AbstractJvmBasicCompletionT
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("InnerInBaseClass.kt")
|
||||
public void testInnerInBaseClass() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/basic/common/InnerInBaseClass.kt");
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("InsideAnonymousClass.kt")
|
||||
public void testInsideAnonymousClass() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/basic/common/InsideAnonymousClass.kt");
|
||||
|
||||
Reference in New Issue
Block a user