KT-42909 fix missing loop variable in 'withIndex' ranges

This commit is contained in:
Dmitry Petrov
2020-11-23 10:46:42 +03:00
parent a9c9406a55
commit bf7fdcda6e
10 changed files with 59 additions and 6 deletions
@@ -18946,6 +18946,11 @@ public class IrJsCodegenBoxES6TestGenerated extends AbstractIrJsCodegenBoxES6Tes
public void testForInWithIndexWithIndex() throws Exception {
runTest("compiler/testData/codegen/box/ranges/forInProgressionWithIndex/forInWithIndexWithIndex.kt");
}
@TestMetadata("kt42909.kt")
public void testKt42909() throws Exception {
runTest("compiler/testData/codegen/box/ranges/forInProgressionWithIndex/kt42909.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/ranges/forInReversed")
@@ -18946,6 +18946,11 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
public void testForInWithIndexWithIndex() throws Exception {
runTest("compiler/testData/codegen/box/ranges/forInProgressionWithIndex/forInWithIndexWithIndex.kt");
}
@TestMetadata("kt42909.kt")
public void testKt42909() throws Exception {
runTest("compiler/testData/codegen/box/ranges/forInProgressionWithIndex/kt42909.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/ranges/forInReversed")
@@ -19051,6 +19051,11 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
public void testForInWithIndexWithIndex() throws Exception {
runTest("compiler/testData/codegen/box/ranges/forInProgressionWithIndex/forInWithIndexWithIndex.kt");
}
@TestMetadata("kt42909.kt")
public void testKt42909() throws Exception {
runTest("compiler/testData/codegen/box/ranges/forInProgressionWithIndex/kt42909.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/ranges/forInReversed")
@@ -11807,6 +11807,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
public void testAllFilesPresentInForInProgressionWithIndex() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/forInProgressionWithIndex"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true);
}
@TestMetadata("kt42909.kt")
public void testKt42909() throws Exception {
runTest("compiler/testData/codegen/box/ranges/forInProgressionWithIndex/kt42909.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/ranges/forInReversed")