[FIR] Fix "Expected some types" exception, ^KT-51274 Fixed

This commit is contained in:
Ivan Kochurkin
2022-02-15 21:02:34 +03:00
committed by teamcity
parent 6a3b7a9f91
commit 31d9313c51
10 changed files with 54 additions and 5 deletions
@@ -10292,6 +10292,12 @@ public class DiagnosisCompilerTestFE10TestdataTestGenerated extends AbstractDiag
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/exceptions"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
@Test
@TestMetadata("expectedSomeTypesOnBranchForWhenExpressionOfErroneousType.kt")
public void testExpectedSomeTypesOnBranchForWhenExpressionOfErroneousType() throws Exception {
runTest("compiler/testData/diagnostics/tests/exceptions/expectedSomeTypesOnBranchForWhenExpressionOfErroneousType.kt");
}
@Test
@TestMetadata("kt24158.kt")
public void testKt24158() throws Exception {