Add recovery for import lists in the middle of the file

Note, that it only works for top-level declarations

^KT-7185 Fixed
This commit is contained in:
Denis Zharkov
2018-12-21 13:53:10 +03:00
parent e6710b6fa2
commit 65e6e21d0f
10 changed files with 371 additions and 8 deletions
@@ -9071,6 +9071,11 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest {
runTest("compiler/testData/diagnostics/tests/imports/TopLevelClassVsPackage.kt");
}
@TestMetadata("twoImportLists.kt")
public void testTwoImportLists() throws Exception {
runTest("compiler/testData/diagnostics/tests/imports/twoImportLists.kt");
}
@TestMetadata("WrongImport.kt")
public void testWrongImport() throws Exception {
runTest("compiler/testData/diagnostics/tests/imports/WrongImport.kt");