Use correctElementType to determine array element type for withIndex
Rather unkind "gotcha" in ASM API. #KT-23900 Fixed Target versions 1.2.50
This commit is contained in:
+11
-2
@@ -4397,6 +4397,16 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/box/controlStructures/forInArrayWithIndex"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JS, true);
|
||||
}
|
||||
|
||||
@TestMetadata("forInArrayOfObjectArrayWithIndex.kt")
|
||||
public void testForInArrayOfObjectArrayWithIndex() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInArrayOfObjectArrayWithIndex.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInArrayOfPrimArrayWithIndex.kt")
|
||||
public void testForInArrayOfPrimArrayWithIndex() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInArrayOfPrimArrayWithIndex.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInArrayWithIndexContinuesAsUnmodified.kt")
|
||||
public void testForInArrayWithIndexContinuesAsUnmodified() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInArrayWithIndexContinuesAsUnmodified.kt");
|
||||
@@ -13204,8 +13214,7 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
|
||||
|
||||
@TestMetadata("kt23260.kt")
|
||||
public void testKt23260() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/properties/lateinit/local/kt23260.kt");
|
||||
doTest(fileName);
|
||||
runTest("compiler/testData/codegen/box/properties/lateinit/local/kt23260.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("localLateinit.kt")
|
||||
|
||||
Reference in New Issue
Block a user