[FE 1.0] Prohibit confusing syntax inside when branches
^KT-48385 Fixed
This commit is contained in:
committed by
teamcityserver
parent
653fc85461
commit
1513e739c6
+18
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user