[FE 1.0] Report DUPLICATE_LABEL_IN_WHEN on proper branches

^KT-50385 Fixed
This commit is contained in:
Dmitriy Novozhilov
2021-12-19 22:34:09 +03:00
committed by teamcity
parent d9a3dd09ea
commit eb753eac83
9 changed files with 185 additions and 7 deletions
@@ -32929,6 +32929,12 @@ public class DiagnosisCompilerTestFE10TestdataTestGenerated extends AbstractDiag
runTest("compiler/testData/diagnostics/tests/when/ExhaustiveVarOverConditionalInit.kt");
}
@Test
@TestMetadata("exhaustiveWhenWithConstVal.kt")
public void testExhaustiveWhenWithConstVal() throws Exception {
runTest("compiler/testData/diagnostics/tests/when/exhaustiveWhenWithConstVal.kt");
}
@Test
@TestMetadata("ExhaustiveWithNullabilityCheck.kt")
public void testExhaustiveWithNullabilityCheck() throws Exception {