mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
13 lines
170 B
Kotlin
Vendored
13 lines
170 B
Kotlin
Vendored
enum class Season {
|
|
WINTER,
|
|
SPRING,
|
|
SUMMER,
|
|
AUTUMN
|
|
}
|
|
|
|
fun foo(): Season = Season.SPRING
|
|
|
|
fun box() =
|
|
if (foo() == Season.SPRING) "OK"
|
|
else "fail"
|