[FIR] Unwrap flexible types in when exhaustiveness checker
^KT-56942 Fixed
This commit is contained in:
committed by
Space Team
parent
01c670194a
commit
0bbc61f459
+12
@@ -32915,6 +32915,12 @@ public class DiagnosisCompilerTestFE10TestdataTestGenerated extends AbstractDiag
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/testsWithJava17/sealedClasses"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.(fir|ll)\\.kts?$"), true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("flexibleSealedInSubject.kt")
|
||||
public void testFlexibleSealedInSubject() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/testsWithJava17/sealedClasses/flexibleSealedInSubject.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("javaSealedClassExhaustiveness.kt")
|
||||
public void testJavaSealedClassExhaustiveness() throws Exception {
|
||||
@@ -35226,6 +35232,12 @@ public class DiagnosisCompilerTestFE10TestdataTestGenerated extends AbstractDiag
|
||||
runTest("compiler/testData/diagnostics/tests/when/extractingEntireCall.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("flexibleEnumInSubject.kt")
|
||||
public void testFlexibleEnumInSubject() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/when/flexibleEnumInSubject.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("intersectionExhaustivenessComplex.kt")
|
||||
public void testIntersectionExhaustivenessComplex() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user