KT-7377 Throwable: Empty PSI elements should not be passed to createDescriptor from UnusedReceiverParameterInspection

#KT-7377 fixed
This commit is contained in:
Evgeny Gerashchenko
2015-04-09 19:20:15 +03:00
parent e3bdc18aea
commit 508c7a58b6
5 changed files with 83 additions and 1 deletions
@@ -1428,6 +1428,12 @@ public class JetParsingTestGenerated extends AbstractJetParsingTest {
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/psi/recovery"), Pattern.compile("^(.*)\\.kts?$"), true);
}
@TestMetadata("BareVal.kt")
public void testBareVal() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/psi/recovery/BareVal.kt");
doParsingTest(fileName);
}
@TestMetadata("DoWhileWithEmptyCondition.kt")
public void testDoWhileWithEmptyCondition() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/psi/recovery/DoWhileWithEmptyCondition.kt");