Change importing rules for objects:
Allow importing classes from object, prohibit import-on-demand from objects It's unclear what import-on-demand from object should mean so we prohibit it for now
This commit is contained in:
@@ -5209,6 +5209,12 @@ public class JetDiagnosticsTestGenerated extends AbstractJetDiagnosticsTest {
|
||||
String fileName = JetTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/imports/RenameOnImport.kt");
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("StarImportFromObject.kt")
|
||||
public void testStarImportFromObject() throws Exception {
|
||||
String fileName = JetTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/imports/StarImportFromObject.kt");
|
||||
doTest(fileName);
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/diagnostics/tests/incompleteCode")
|
||||
|
||||
Reference in New Issue
Block a user