report 'break' and 'continue' inside 'when' as errors (even if 'when' is nested in a loop)
This commit is contained in:
committed by
Andrey Breslav
parent
8ab12e217d
commit
252c4118eb
@@ -180,6 +180,12 @@ public class JetDiagnosticsTestGenerated extends AbstractJetDiagnosticsTest {
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("BreakContinueInWhen.kt")
|
||||
public void testBreakContinueInWhen() throws Exception {
|
||||
String fileName = JetTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/BreakContinueInWhen.kt");
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("Builders.kt")
|
||||
public void testBuilders() throws Exception {
|
||||
String fileName = JetTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/Builders.kt");
|
||||
|
||||
Reference in New Issue
Block a user