Files
kotlin/compiler/testData/codegen/enum/simple.kt
Alexander Udalov 5313cf3bf0 Fix failing tests, copy testData
Some tests were using files that others called blackBoxFile() on. Since
those files are now moved to box/, copy them back to make the tests pass
2013-01-28 18:20:25 +04:00

13 lines
167 B
Kotlin

enum class Season {
WINTER
SPRING
SUMMER
AUTUMN
}
fun foo(): Season = Season.SPRING
fun box() =
if (foo() == Season.SPRING) "OK"
else "fail"