mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-07 08:31:28 +00:00
17 lines
246 B
Kotlin
Vendored
17 lines
246 B
Kotlin
Vendored
const val A = 10
|
|
private const val B = 20
|
|
|
|
object Constants {
|
|
const val C = 30
|
|
}
|
|
|
|
fun foo(state: Int) {
|
|
when (state) {
|
|
A -> return
|
|
B -> return
|
|
Constants.C -> return
|
|
else -> return
|
|
}
|
|
}
|
|
|
|
// 1 LOOKUPSWITCH |