Fix AE: No receiver found on incomplete code with $-signs

^KT-24158 Fixed
This commit is contained in:
Denis.Zharkov
2020-12-23 15:11:35 +03:00
parent 77d4a46a6b
commit cbb8459e4e
8 changed files with 127 additions and 8 deletions
@@ -9106,6 +9106,22 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirDiagnosti
}
}
@Nested
@TestMetadata("compiler/testData/diagnostics/tests/exceptions")
@TestDataPath("$PROJECT_ROOT")
public class Exceptions extends AbstractFirDiagnosticTest {
@Test
public void testAllFilesPresentInExceptions() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/exceptions"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
@Test
@TestMetadata("kt24158.kt")
public void testKt24158() throws Exception {
runTest("compiler/testData/diagnostics/tests/exceptions/kt24158.kt");
}
}
@Nested
@TestMetadata("compiler/testData/diagnostics/tests/exposed")
@TestDataPath("$PROJECT_ROOT")