mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
16 lines
247 B
Kotlin
Vendored
16 lines
247 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
|
|
}
|
|
}
|
|
|
|
// 2 TABLESWITCH
|