Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
f7ff397a310cd4d47fc4849043f8c9d47412e512
/
.
/
compiler
/
testData
/
codegen
/
box
/
sealed
/
objects.kt
blob: 0873aef3d9f3fdb896f6a0050dc2cacd001776b3 [
file
]
// IGNORE_BACKEND_FIR: JVM_IR
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"
}