FIR: Support exhaustive whens on subjects of intersection type

This commit is contained in:
Denis.Zharkov
2021-06-08 17:59:01 +03:00
parent c8b9a3a6f0
commit 2653565f56
11 changed files with 262 additions and 11 deletions
@@ -31031,6 +31031,18 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirDiagnosti
runTest("compiler/testData/diagnostics/tests/when/ExhaustiveWithNullabilityCheckElse.kt");
}
@Test
@TestMetadata("intersectionExhaustivenessComplex.kt")
public void testIntersectionExhaustivenessComplex() throws Exception {
runTest("compiler/testData/diagnostics/tests/when/intersectionExhaustivenessComplex.kt");
}
@Test
@TestMetadata("intersectionExhaustivenessSimple.kt")
public void testIntersectionExhaustivenessSimple() throws Exception {
runTest("compiler/testData/diagnostics/tests/when/intersectionExhaustivenessSimple.kt");
}
@Test
@TestMetadata("kt10439.kt")
public void testKt10439() throws Exception {
@@ -31031,6 +31031,18 @@ public class FirOldFrontendDiagnosticsWithLightTreeTestGenerated extends Abstrac
runTest("compiler/testData/diagnostics/tests/when/ExhaustiveWithNullabilityCheckElse.kt");
}
@Test
@TestMetadata("intersectionExhaustivenessComplex.kt")
public void testIntersectionExhaustivenessComplex() throws Exception {
runTest("compiler/testData/diagnostics/tests/when/intersectionExhaustivenessComplex.kt");
}
@Test
@TestMetadata("intersectionExhaustivenessSimple.kt")
public void testIntersectionExhaustivenessSimple() throws Exception {
runTest("compiler/testData/diagnostics/tests/when/intersectionExhaustivenessSimple.kt");
}
@Test
@TestMetadata("kt10439.kt")
public void testKt10439() throws Exception {