FIR: Support exhaustive whens on subjects of intersection type
This commit is contained in:
+12
@@ -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 {
|
||||
|
||||
+12
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user