mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 00:21:26 +00:00
Ensure that ranges are not created for in-Comparable-range-literal
#KT-6247 Fixed Target versions 1.1.4
This commit is contained in:
5
compiler/testData/codegen/bytecodeText/ranges/inComparableRangeLiteral.kt
vendored
Normal file
5
compiler/testData/codegen/bytecodeText/ranges/inComparableRangeLiteral.kt
vendored
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user