Add test for KT-54742
This commit is contained in:
+6
@@ -15146,6 +15146,12 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirDiagnosti
|
||||
@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("^(.*)\\.kts?$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
|
||||
|
||||
+6
@@ -15140,6 +15140,12 @@ public class FirOldFrontendDiagnosticsWithLightTreeTestGenerated extends Abstrac
|
||||
@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);
|
||||
|
||||
Reference in New Issue
Block a user