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:
Dmitry Petrov
2018-04-23 11:37:52 +03:00
parent 5817a7fdac
commit 1eca402332
8 changed files with 73 additions and 11 deletions
@@ -2559,8 +2559,7 @@ public class BytecodeTextTestGenerated extends AbstractBytecodeTextTest {
@TestMetadata("doNotAppendEmptyString.kt")
public void testDoNotAppendEmptyString() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/bytecodeText/stringOperations/doNotAppendEmptyString.kt");
doTest(fileName);
runTest("compiler/testData/codegen/bytecodeText/stringOperations/doNotAppendEmptyString.kt");
}
@TestMetadata("interpolation.kt")