1b553ebfaf
Added tests from testData/codegen/box directory. There are blackbox tests in other directories and they are to be added.
12 lines
210 B
Kotlin
12 lines
210 B
Kotlin
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"
|
|
}
|