Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
073a50037049a4e0869085bf4acf7c29e56210e3
/
.
/
compiler
/
testData
/
codegen
/
bytecodeText
/
whenEnumOptimization
/
nonConstantEnum.kt
blob: 7c73b91f2a5dd8c215103151ed717da9311b7bf9 [
file
] [
log
] [
blame
]
enum
class
Season
{
WINTER
,
SPRING
,
SUMMER
,
AUTUMN
}
fun foo
():
Season
=
Season
.
SPRING
fun bar
():
Season
=
Season
.
SPRING
fun box
()
:
String
{
when
(
foo
())
{
bar
()
->
return
"OK"
else
->
return
"fail"
}
}
// 0 TABLESWITCH