Ensure that {Collection, CharSequence}.indices intrinsic works with 'in'

This commit is contained in:
Dmitry Petrov
2017-06-30 18:11:44 +03:00
parent ec99fa2142
commit 36cbc0defd
9 changed files with 107 additions and 0 deletions
@@ -1865,6 +1865,18 @@ public class BytecodeTextTestGenerated extends AbstractBytecodeTextTest {
doTest(fileName);
}
@TestMetadata("inCharSequenceIndices.kt")
public void testInCharSequenceIndices() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/bytecodeText/ranges/inCharSequenceIndices.kt");
doTest(fileName);
}
@TestMetadata("inCollectionIndices.kt")
public void testInCollectionIndices() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/bytecodeText/ranges/inCollectionIndices.kt");
doTest(fileName);
}
@TestMetadata("inComparableRangeLiteral.kt")
public void testInComparableRangeLiteral() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/bytecodeText/ranges/inComparableRangeLiteral.kt");