KT-7486 Auto import inserts qualified name in companion object
#KT-7486 Fixed
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
class A {
|
||||
pl<caret>
|
||||
}
|
||||
|
||||
// ELEMENT: platformStatic
|
||||
@@ -0,0 +1,7 @@
|
||||
import kotlin.platform.platformStatic
|
||||
|
||||
class A {
|
||||
platformStatic<caret>
|
||||
}
|
||||
|
||||
// ELEMENT: platformStatic
|
||||
@@ -0,0 +1,7 @@
|
||||
class A {
|
||||
companion object {
|
||||
pl<caret>
|
||||
}
|
||||
}
|
||||
|
||||
// ELEMENT: platformStatic
|
||||
@@ -0,0 +1,9 @@
|
||||
import kotlin.platform.platformStatic
|
||||
|
||||
class A {
|
||||
companion object {
|
||||
platformStatic<caret>
|
||||
}
|
||||
}
|
||||
|
||||
// ELEMENT: platformStatic
|
||||
+12
@@ -107,6 +107,18 @@ public class BasicCompletionHandlerTestGenerated extends AbstractBasicCompletion
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("PlatformStaticInClass.kt")
|
||||
public void testPlatformStaticInClass() throws Exception {
|
||||
String fileName = JetTestUtils.navigationMetadata("idea/idea-completion/testData/handlers/basic/PlatformStaticInClass.kt");
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("PlatformStaticInCompanionObject.kt")
|
||||
public void testPlatformStaticInCompanionObject() throws Exception {
|
||||
String fileName = JetTestUtils.navigationMetadata("idea/idea-completion/testData/handlers/basic/PlatformStaticInCompanionObject.kt");
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("ReplaceFunctionCallByProperty.kt")
|
||||
public void testReplaceFunctionCallByProperty() throws Exception {
|
||||
String fileName = JetTestUtils.navigationMetadata("idea/idea-completion/testData/handlers/basic/ReplaceFunctionCallByProperty.kt");
|
||||
|
||||
Reference in New Issue
Block a user