Import: IDE should import class from root package

#KT-21422 Fixed
This commit is contained in:
Dmitry Gridin
2019-06-28 18:13:34 +07:00
parent 148eed2a12
commit 074829bcea
9 changed files with 51 additions and 6 deletions
@@ -199,6 +199,11 @@ public class AddImportTestGenerated extends AbstractAddImportTest {
runTest("idea/testData/addImport/ImportFromObject.kt");
}
@TestMetadata("ImportFromRoot.kt")
public void testImportFromRoot() throws Exception {
runTest("idea/testData/addImport/ImportFromRoot.kt");
}
@TestMetadata("ImportFunctionBug.kt")
public void testImportFunctionBug() throws Exception {
runTest("idea/testData/addImport/ImportFunctionBug.kt");
@@ -633,6 +633,11 @@ public class QuickFixMultiFileTestGenerated extends AbstractQuickFixMultiFileTes
runTest("idea/testData/quickfix/autoImports/importAliasPropertyAlreadyExists.before.Main.kt");
}
@TestMetadata("importFromRoot.before.Main.kt")
public void testImportFromRoot() throws Exception {
runTest("idea/testData/quickfix/autoImports/importFromRoot.before.Main.kt");
}
@TestMetadata("importInFirstPartInQualifiedExpression.before.Main.kt")
public void testImportInFirstPartInQualifiedExpression() throws Exception {
runTest("idea/testData/quickfix/autoImports/importInFirstPartInQualifiedExpression.before.Main.kt");