Add regression for EA-47864
This commit is contained in:
@@ -0,0 +1,12 @@
|
|||||||
|
import java.util.Arrays
|
||||||
|
|
||||||
|
fun foo(): List<String>? = Arrays.asList("abcde")
|
||||||
|
|
||||||
|
fun box(): String {
|
||||||
|
for (i in 1..3) {
|
||||||
|
for (value in foo() ?: continue) {
|
||||||
|
if (value != "abcde") return "Fail"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return "OK"
|
||||||
|
}
|
||||||
@@ -1299,6 +1299,11 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
|||||||
doTest("compiler/testData/codegen/box/controlStructures/continueInFor.kt");
|
doTest("compiler/testData/codegen/box/controlStructures/continueInFor.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("continueInForCondition.kt")
|
||||||
|
public void testContinueInForCondition() throws Exception {
|
||||||
|
doTest("compiler/testData/codegen/box/controlStructures/continueInForCondition.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("continueToLabelInFor.kt")
|
@TestMetadata("continueToLabelInFor.kt")
|
||||||
public void testContinueToLabelInFor() throws Exception {
|
public void testContinueToLabelInFor() throws Exception {
|
||||||
doTest("compiler/testData/codegen/box/controlStructures/continueToLabelInFor.kt");
|
doTest("compiler/testData/codegen/box/controlStructures/continueToLabelInFor.kt");
|
||||||
|
|||||||
Reference in New Issue
Block a user