[FE 1.0] Report NON_EXHAUSTIVE_WHEN_STATEMENT/NO_ELSE_IN_WHEN for when's on logical types
^KT-47709 In Progress
This commit is contained in:
committed by
teamcityserver
parent
85c7f386eb
commit
ef635f6a96
+12
@@ -31681,6 +31681,18 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirDiagnosti
|
||||
runTest("compiler/testData/diagnostics/tests/when/NonExhaustiveWarningNull.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nonExhaustiveWhenStatement_1_6.kt")
|
||||
public void testNonExhaustiveWhenStatement_1_6() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/when/nonExhaustiveWhenStatement_1_6.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nonExhaustiveWhenStatement_1_7.kt")
|
||||
public void testNonExhaustiveWhenStatement_1_7() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/when/nonExhaustiveWhenStatement_1_7.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("NonExhaustiveWithNullabilityCheck.kt")
|
||||
public void testNonExhaustiveWithNullabilityCheck() throws Exception {
|
||||
|
||||
+12
@@ -31681,6 +31681,18 @@ public class FirOldFrontendDiagnosticsWithLightTreeTestGenerated extends Abstrac
|
||||
runTest("compiler/testData/diagnostics/tests/when/NonExhaustiveWarningNull.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nonExhaustiveWhenStatement_1_6.kt")
|
||||
public void testNonExhaustiveWhenStatement_1_6() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/when/nonExhaustiveWhenStatement_1_6.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nonExhaustiveWhenStatement_1_7.kt")
|
||||
public void testNonExhaustiveWhenStatement_1_7() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/when/nonExhaustiveWhenStatement_1_7.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("NonExhaustiveWithNullabilityCheck.kt")
|
||||
public void testNonExhaustiveWithNullabilityCheck() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user