Ensure that no range instance is created for 'x in array.indices'

This commit is contained in:
Dmitry Petrov
2017-06-30 16:32:13 +03:00
parent 4320b63922
commit 5decf65d6a
7 changed files with 60 additions and 0 deletions
@@ -1859,6 +1859,12 @@ public class BytecodeTextTestGenerated extends AbstractBytecodeTextTest {
doTest(fileName);
}
@TestMetadata("inArrayIndices.kt")
public void testInArrayIndices() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/bytecodeText/ranges/inArrayIndices.kt");
doTest(fileName);
}
@TestMetadata("inComparableRangeLiteral.kt")
public void testInComparableRangeLiteral() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/bytecodeText/ranges/inComparableRangeLiteral.kt");