Ensure that ranges are not created for in-Comparable-range-literal
#KT-6247 Fixed Target versions 1.1.4
This commit is contained in:
@@ -0,0 +1,5 @@
|
|||||||
|
fun test1(a: String) = a in "alpha" .. "omega"
|
||||||
|
fun test2(a: String) = a !in "alpha" .. "omega"
|
||||||
|
|
||||||
|
// 0 INVOKESTATIC kotlin/ranges/RangesKt.rangeTo
|
||||||
|
// 0 INVOKEINTERFACE kotlin/ranges/ClosedRange.contains
|
||||||
@@ -1859,6 +1859,12 @@ public class BytecodeTextTestGenerated extends AbstractBytecodeTextTest {
|
|||||||
doTest(fileName);
|
doTest(fileName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("inComparableRangeLiteral.kt")
|
||||||
|
public void testInComparableRangeLiteral() throws Exception {
|
||||||
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/bytecodeText/ranges/inComparableRangeLiteral.kt");
|
||||||
|
doTest(fileName);
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("inNonMatchingRange.kt")
|
@TestMetadata("inNonMatchingRange.kt")
|
||||||
public void testInNonMatchingRange() throws Exception {
|
public void testInNonMatchingRange() throws Exception {
|
||||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/bytecodeText/ranges/inNonMatchingRange.kt");
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/bytecodeText/ranges/inNonMatchingRange.kt");
|
||||||
|
|||||||
Reference in New Issue
Block a user