Add test for KT-54742

This commit is contained in:
pyos
2022-12-08 11:59:32 +01:00
committed by Dmitriy Novozhilov
parent 0bce15b862
commit 544cf386af
7 changed files with 132 additions and 0 deletions
@@ -15140,6 +15140,12 @@ public class DiagnosisCompilerTestFE10TestdataTestGenerated extends AbstractDiag
@TestMetadata("compiler/testData/diagnostics/tests/inference/coercionToUnit")
@TestDataPath("$PROJECT_ROOT")
public class CoercionToUnit {
@Test
@TestMetadata("afterBareReturn.kt")
public void testAfterBareReturn() throws Exception {
runTest("compiler/testData/diagnostics/tests/inference/coercionToUnit/afterBareReturn.kt");
}
@Test
public void testAllFilesPresentInCoercionToUnit() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/inference/coercionToUnit"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);