Handle withIndex() on arrays and CharSequences in ForLoopsLowering.
This commit is contained in:
committed by
max-kammerer
parent
735535dd5a
commit
a54d9482dd
+20
@@ -5301,11 +5301,21 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
runTest("compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInArrayWithIndexNoElementVar.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInArrayWithIndexNoIndexOrElementVar.kt")
|
||||
public void testForInArrayWithIndexNoIndexOrElementVar() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInArrayWithIndexNoIndexOrElementVar.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInArrayWithIndexNoIndexVar.kt")
|
||||
public void testForInArrayWithIndexNoIndexVar() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInArrayWithIndexNoIndexVar.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInArrayWithIndexNotDestructured.kt")
|
||||
public void testForInArrayWithIndexNotDestructured() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInArrayWithIndexNotDestructured.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInArrayWithIndexWithExplicitlyTypedIndexVariable.kt")
|
||||
public void testForInArrayWithIndexWithExplicitlyTypedIndexVariable() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInArrayWithIndexWithExplicitlyTypedIndexVariable.kt");
|
||||
@@ -5419,11 +5429,21 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
runTest("compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInStringWithIndexNoElementVar.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInStringWithIndexNoIndexOrElementVar.kt")
|
||||
public void testForInStringWithIndexNoIndexOrElementVar() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInStringWithIndexNoIndexOrElementVar.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInStringWithIndexNoIndexVar.kt")
|
||||
public void testForInStringWithIndexNoIndexVar() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInStringWithIndexNoIndexVar.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInStringWithIndexNotDestructured.kt")
|
||||
public void testForInStringWithIndexNotDestructured() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInStringWithIndexNotDestructured.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInStringWithIndexWithExplicitlyTypedIndexVariable.kt")
|
||||
public void testForInStringWithIndexWithExplicitlyTypedIndexVariable() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInStringWithIndexWithExplicitlyTypedIndexVariable.kt");
|
||||
|
||||
Reference in New Issue
Block a user