mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-24 09:20:53 +07:00
21 lines
367 B
Plaintext
21 lines
367 B
Plaintext
// REPL_MODE: true
|
|
|
|
val a = 1
|
|
when(a) { // OUTPUT: 1
|
|
1 -> println("1")
|
|
else -> println("2")
|
|
}
|
|
|
|
when(a) { // OUTPUT: 1
|
|
1 -> println("1")
|
|
}
|
|
|
|
when(a) { // OUTPUT: 1
|
|
2 -> println("2")
|
|
else -> println("1")
|
|
}
|
|
|
|
when(a) { // RESULT: res4: kotlin.Int = 11
|
|
1 -> 11
|
|
else -> 12
|
|
} |