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>
22 lines
289 B
Kotlin
Vendored
22 lines
289 B
Kotlin
Vendored
// TARGET_BACKEND: JVM_IR
|
|
|
|
enum class E {
|
|
A, B;
|
|
}
|
|
|
|
fun bar(): E = E.A
|
|
|
|
fun foo(e: E): String {
|
|
val c = when (e) {
|
|
E.B -> "B"
|
|
bar() -> "OK"
|
|
else -> "else"
|
|
}
|
|
return c
|
|
}
|
|
|
|
fun box() = foo(bar())
|
|
|
|
// CHECK_BYTECODE_TEXT
|
|
// 0 WhenMappings
|
|
// 0 TABLESWITCH |