Add recovery for enum declaration without 'class' keyword

^KT-13703 Fixed
This commit is contained in:
Denis Zharkov
2018-12-20 10:50:36 +03:00
parent 1688fed0b7
commit 5437a0e478
7 changed files with 215 additions and 29 deletions
@@ -1933,6 +1933,11 @@ public class ParsingTestGenerated extends AbstractParsingTest {
runTest("compiler/testData/psi/recovery/DoWhileWithoutLPar.kt");
}
@TestMetadata("enumWthoutClass.kt")
public void testEnumWthoutClass() throws Exception {
runTest("compiler/testData/psi/recovery/enumWthoutClass.kt");
}
@TestMetadata("ForEmptyParentheses.kt")
public void testForEmptyParentheses() throws Exception {
runTest("compiler/testData/psi/recovery/ForEmptyParentheses.kt");