K2: Resolve non-exhaustive when expressions independently

^KT-55169 Fixed
^KT-55175 Related
This commit is contained in:
Denis.Zharkov
2022-11-28 18:02:19 +01:00
committed by Space Team
parent 9fa0f51a61
commit 04d3996e68
8 changed files with 78 additions and 5 deletions
@@ -35152,6 +35152,12 @@ public class DiagnosisCompilerTestFE10TestdataTestGenerated extends AbstractDiag
runTest("compiler/testData/diagnostics/tests/when/NonExhaustiveBooleanNullable.kt");
}
@Test
@TestMetadata("nonExhaustiveDependentContext.kt")
public void testNonExhaustiveDependentContext() throws Exception {
runTest("compiler/testData/diagnostics/tests/when/nonExhaustiveDependentContext.kt");
}
@Test
@TestMetadata("NonExhaustivePlatformEnum.kt")
public void testNonExhaustivePlatformEnum() throws Exception {