[FE 1.0] Prohibit confusing syntax inside when branches

^KT-48385 Fixed
This commit is contained in:
Dmitriy Novozhilov
2021-10-20 16:40:13 +03:00
committed by teamcityserver
parent 653fc85461
commit 1513e739c6
28 changed files with 1323 additions and 28 deletions
@@ -32095,6 +32095,24 @@ public class DiagnosisCompilerTestFE10TestdataTestGenerated extends AbstractDiag
runTest("compiler/testData/diagnostics/tests/when/CommaInWhenConditionWithoutArgument.kt");
}
@Test
@TestMetadata("deprecatedSyntaxInConditionsNoSubject.kt")
public void testDeprecatedSyntaxInConditionsNoSubject() throws Exception {
runTest("compiler/testData/diagnostics/tests/when/deprecatedSyntaxInConditionsNoSubject.kt");
}
@Test
@TestMetadata("deprecatedSyntaxInConditions_after.kt")
public void testDeprecatedSyntaxInConditions_after() throws Exception {
runTest("compiler/testData/diagnostics/tests/when/deprecatedSyntaxInConditions_after.kt");
}
@Test
@TestMetadata("deprecatedSyntaxInConditions_before.kt")
public void testDeprecatedSyntaxInConditions_before() throws Exception {
runTest("compiler/testData/diagnostics/tests/when/deprecatedSyntaxInConditions_before.kt");
}
@Test
@TestMetadata("DuplicatedLabels.kt")
public void testDuplicatedLabels() throws Exception {