fix KT-2167 (enum generation)

#KT-2167 fixed
This commit is contained in:
Stepan Koltsov
2012-06-02 02:18:29 +04:00
parent a5eaa3abe3
commit 139e376f7c
3 changed files with 34 additions and 0 deletions
@@ -0,0 +1,14 @@
// http://youtrack.jetbrains.com/issue/KT-2167
enum class Season {
WINTER
SPRING
SUMMER
AUTUMN
}
fun foo() = Season.SPRING
fun box() =
if (foo() == Season.SPRING) "OK"
else "fail"