mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
19 lines
326 B
Kotlin
Vendored
19 lines
326 B
Kotlin
Vendored
import kotlin.test.assertEquals
|
|
|
|
enum class Season {
|
|
WINTER,
|
|
SPRING,
|
|
SUMMER,
|
|
AUTUMN
|
|
}
|
|
|
|
fun bar(x : Season) : String {
|
|
when (x) {
|
|
Season.WINTER, Season.SPRING -> return "winter_spring"
|
|
Season.SUMMER, Season.SPRING -> return "summer"
|
|
else -> return "autumn"
|
|
}
|
|
}
|
|
|
|
// 1 TABLESWITCH
|