KT-13241 Indices optimization leads to VerifyError with smart cast receiver

Use expected receiver type from the corresponding extension function.
This commit is contained in:
Dmitry Petrov
2016-07-27 11:29:02 +03:00
parent f3be1b8f1f
commit 26c8bc87fd
5 changed files with 101 additions and 42 deletions
@@ -11273,6 +11273,24 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/ranges/forInIndices/kt12983_forInSpecificCollectionIndices.kt");
doTest(fileName);
}
@TestMetadata("kt13241_Array.kt")
public void testKt13241_Array() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/ranges/forInIndices/kt13241_Array.kt");
doTest(fileName);
}
@TestMetadata("kt13241_CharSequence.kt")
public void testKt13241_CharSequence() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/ranges/forInIndices/kt13241_CharSequence.kt");
doTest(fileName);
}
@TestMetadata("kt13241_Collection.kt")
public void testKt13241_Collection() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/ranges/forInIndices/kt13241_Collection.kt");
doTest(fileName);
}
}
@TestMetadata("compiler/testData/codegen/box/ranges/literal")