Add import for member: don't suggest if a class with the same name has been imported

#KT-38492 Fixed
This commit is contained in:
Toshiaki Kameyama
2020-05-02 12:01:21 +09:00
committed by Yan Zhulanow
parent 329f0227ec
commit 45d60baeb0
4 changed files with 67 additions and 6 deletions
@@ -8973,6 +8973,16 @@ public class IntentionTestGenerated extends AbstractIntentionTest {
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("idea/testData/intentions/importMember"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), null, true);
}
@TestMetadata("AlreadyImportedSameNameClass.kt")
public void testAlreadyImportedSameNameClass() throws Exception {
runTest("idea/testData/intentions/importMember/AlreadyImportedSameNameClass.kt");
}
@TestMetadata("AlreadyImportedSameNameClass2.kt")
public void testAlreadyImportedSameNameClass2() throws Exception {
runTest("idea/testData/intentions/importMember/AlreadyImportedSameNameClass2.kt");
}
@TestMetadata("ClassCallChain.kt")
public void testClassCallChain() throws Exception {
runTest("idea/testData/intentions/importMember/ClassCallChain.kt");