mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-07 15:53:18 +00:00
17 lines
265 B
Kotlin
Vendored
17 lines
265 B
Kotlin
Vendored
fun foo1(x: Int): Boolean {
|
|
when(x) {
|
|
2 + 2 -> return true
|
|
else -> return false
|
|
}
|
|
}
|
|
|
|
fun foo2(x: Int): Boolean {
|
|
when(x) {
|
|
Integer.MAX_VALUE -> return true
|
|
else -> return false
|
|
}
|
|
}
|
|
|
|
// 0 TABLESWITCH
|
|
// 2 LOOKUPSWITCH
|