[Test] Add test for KT-47892
This commit is contained in:
committed by
Space Team
parent
637b46cb6e
commit
03973419dd
+6
@@ -7090,6 +7090,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
|
||||
runTest("compiler/testData/diagnostics/tests/controlStructures/continueAndBreakLabelWithSameFunctionName.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("continueInInitBlock.kt")
|
||||
public void testContinueInInitBlock() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/controlStructures/continueInInitBlock.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("emptyIf.kt")
|
||||
public void testEmptyIf() throws Exception {
|
||||
|
||||
+6
@@ -7090,6 +7090,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
|
||||
runTest("compiler/testData/diagnostics/tests/controlStructures/continueAndBreakLabelWithSameFunctionName.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("continueInInitBlock.kt")
|
||||
public void testContinueInInitBlock() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/controlStructures/continueInInitBlock.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("emptyIf.kt")
|
||||
public void testEmptyIf() throws Exception {
|
||||
|
||||
+6
@@ -7090,6 +7090,12 @@ public class FirLightTreeOldFrontendDiagnosticsTestGenerated extends AbstractFir
|
||||
runTest("compiler/testData/diagnostics/tests/controlStructures/continueAndBreakLabelWithSameFunctionName.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("continueInInitBlock.kt")
|
||||
public void testContinueInInitBlock() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/controlStructures/continueInInitBlock.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("emptyIf.kt")
|
||||
public void testEmptyIf() throws Exception {
|
||||
|
||||
+6
@@ -7096,6 +7096,12 @@ public class FirPsiOldFrontendDiagnosticsTestGenerated extends AbstractFirPsiDia
|
||||
runTest("compiler/testData/diagnostics/tests/controlStructures/continueAndBreakLabelWithSameFunctionName.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("continueInInitBlock.kt")
|
||||
public void testContinueInInitBlock() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/controlStructures/continueInInitBlock.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("emptyIf.kt")
|
||||
public void testEmptyIf() throws Exception {
|
||||
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
// ISSUE: KT-47892
|
||||
|
||||
fun test(b: Boolean) {
|
||||
while (b) {
|
||||
class A {
|
||||
init {
|
||||
<!BREAK_OR_CONTINUE_JUMPS_ACROSS_FUNCTION_BOUNDARY!>continue<!>
|
||||
}
|
||||
constructor(): super()
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
// ISSUE: KT-47892
|
||||
|
||||
fun test(b: Boolean) {
|
||||
while (b) {
|
||||
class A {
|
||||
init {
|
||||
continue
|
||||
}
|
||||
constructor(): super()
|
||||
}
|
||||
}
|
||||
}
|
||||
Generated
+6
@@ -7096,6 +7096,12 @@ public class DiagnosticTestGenerated extends AbstractDiagnosticTest {
|
||||
runTest("compiler/testData/diagnostics/tests/controlStructures/continueAndBreakLabelWithSameFunctionName.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("continueInInitBlock.kt")
|
||||
public void testContinueInInitBlock() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/controlStructures/continueInInitBlock.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("emptyIf.kt")
|
||||
public void testEmptyIf() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user