mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-17 00:21:28 +00:00
12 lines
255 B
Kotlin
Vendored
12 lines
255 B
Kotlin
Vendored
// WITH_RUNTIME
|
|
|
|
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 |