Disallow non-local break/continue in crossinline lambdas
This commit is contained in:
committed by
Space
parent
79885c770d
commit
fe5a6fd511
+12
@@ -6290,6 +6290,18 @@ public class DiagnosisCompilerTestFE10TestdataTestGenerated extends AbstractDiag
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/controlStructures"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("breakContinueInCrossInlineLambda.kt")
|
||||
public void testBreakContinueInCrossInlineLambda() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/controlStructures/breakContinueInCrossInlineLambda.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("breakContinueInNoInlineLambda.kt")
|
||||
public void testBreakContinueInNoInlineLambda() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/controlStructures/breakContinueInNoInlineLambda.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("breakToLabel.kt")
|
||||
public void testBreakToLabel() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user