Copy EnumWhenLowering from Kotlin/Native
This commit is contained in:
+1
-1
@@ -1,4 +1,3 @@
|
||||
// IGNORE_BACKEND: JVM_IR
|
||||
import kotlin.test.assertEquals
|
||||
|
||||
enum class Season {
|
||||
@@ -14,6 +13,7 @@ fun box() : String {
|
||||
return foo(Season.SPRING) {
|
||||
x -> when (x) {
|
||||
Season.SPRING -> "OK"
|
||||
Season.SUMMER -> "fail" // redundant branch to force use of TABLESWITCH instead of IF_ICMPNE
|
||||
else -> "fail"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user