Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
b32f408767cf86efaa65eb02699fe00bd61d99a6
/
.
/
compiler
/
testData
/
codegen
/
box
/
sealed
/
objects.kt
blob: c33a71d498fe14dc57342d20210086013168c264 [
file
]
sealed
class
Season
{
object
Warm
:
Season
()
object
Cold
:
Season
()
}
fun foo
():
Season
=
Season
.
Warm
fun box
()
=
when
(
foo
())
{
Season
.
Warm
->
"OK"
Season
.
Cold
->
"Fail: Cold, should be Warm"
}