bcfafc601e
This change allows to revert adding `WITH_STDLIB` directive to tests which happened at `a9343aeb`. Co-authored-by: Alexander Udalov <Alexander.Udalov@jetbrains.com>
16 lines
215 B
Kotlin
Vendored
16 lines
215 B
Kotlin
Vendored
enum class E {
|
|
OK, NOT_OK
|
|
}
|
|
|
|
interface I {
|
|
fun f(e: E): String
|
|
}
|
|
|
|
val obj = object: I {
|
|
override fun f(e: E) = when(e) {
|
|
E.OK -> "OK"
|
|
E.NOT_OK -> "NOT OK"
|
|
}
|
|
}
|
|
|
|
fun box() = obj.f(E.OK) |