Files
kotlin-fork/j2k/tests/testData/ast/switch/fallDown.ide.kt
T
Pavel V. Talanov 741e031ff1 Converter:
Use formatter in converter tests
Reformat test data
2013-12-22 16:46:51 +04:00

20 lines
568 B
Kotlin

package switch_demo
public class SwitchDemo() {
class object {
public fun main(args: Array<String>) {
val month = 8
val monthString: String
when (month) {
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 -> {
monthString = "December"
}
else -> {
monthString = "Invalid month"
}
}
System.out.println(monthString)
}
}
}
fun main(args: Array<String>) = SwitchDemo.main(args as Array<String?>?)