mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-12 00:21:32 +00:00
All bytecode text tests are run with stdlib in the classpath and only for JVM backend, therefore directives WITH_RUNTIME, TARGET_BACKEND, IGNORE_BACKEND are not needed
11 lines
239 B
Kotlin
Vendored
11 lines
239 B
Kotlin
Vendored
fun test(a: Int) = a in 1 .. 10
|
|
fun test(a: Long) = a in 1L .. 10L
|
|
fun test(a: Float) = a in 1.0f .. 10.0f
|
|
fun test(a: Double) = a in 1.0 .. 10.0
|
|
fun test(a: String) = a in "abc" .. "def"
|
|
|
|
// 0 DUP_X1
|
|
// 0 DUP2_X1
|
|
// 0 DUP_X2
|
|
// 0 DUP2_X2
|