Disallow non-local break/continue in crossinline lambdas
This commit is contained in:
committed by
Space
parent
79885c770d
commit
fe5a6fd511
Generated
+12
@@ -6296,6 +6296,18 @@ public class DiagnosticTestGenerated extends AbstractDiagnosticTest {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/controlStructures"), Pattern.compile("^(.*)\\.kts?$"), 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 {
|
||||
|
||||
Generated
-6
@@ -1250,12 +1250,6 @@ public class IrTextTestGenerated extends AbstractIrTextTest {
|
||||
runTest("compiler/testData/ir/irText/expressions/breakContinueInLoopHeader.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("breakContinueInNoInlineLambda.kt")
|
||||
public void testBreakContinueInNoInlineLambda() throws Exception {
|
||||
runTest("compiler/testData/ir/irText/expressions/breakContinueInNoInlineLambda.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("breakContinueInWhen.kt")
|
||||
public void testBreakContinueInWhen() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user