[FE 1.0] Report warning on non-exhaustive when statements only after 1.6
^KT-47709
This commit is contained in:
committed by
teamcityserver
parent
865ad3698b
commit
a710a8d10f
+6
@@ -31681,6 +31681,12 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirDiagnosti
|
||||
runTest("compiler/testData/diagnostics/tests/when/NonExhaustiveWarningNull.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nonExhaustiveWhenStatement_1_5.kt")
|
||||
public void testNonExhaustiveWhenStatement_1_5() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/when/nonExhaustiveWhenStatement_1_5.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nonExhaustiveWhenStatement_1_6.kt")
|
||||
public void testNonExhaustiveWhenStatement_1_6() throws Exception {
|
||||
|
||||
+6
@@ -31681,6 +31681,12 @@ public class FirOldFrontendDiagnosticsWithLightTreeTestGenerated extends Abstrac
|
||||
runTest("compiler/testData/diagnostics/tests/when/NonExhaustiveWarningNull.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nonExhaustiveWhenStatement_1_5.kt")
|
||||
public void testNonExhaustiveWhenStatement_1_5() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/when/nonExhaustiveWhenStatement_1_5.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nonExhaustiveWhenStatement_1_6.kt")
|
||||
public void testNonExhaustiveWhenStatement_1_6() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user