JVM IR: Use Object.clone in Enum.values

This commit is contained in:
Steven Schäfer
2021-02-08 16:50:46 +01:00
committed by Alexander Udalov
parent e47715f52b
commit bea1a8c422
2 changed files with 9 additions and 11 deletions
@@ -3,10 +3,5 @@ enum class Foo {
open fun result() = "Fail"
}
// JVM_TEMPLATES:
// There are two CHECKCASTs, one in Foo.valueOf and one in Foo.values
// 2 CHECKCAST
// JVM_IR_TEMPLATES:
// There should be only one CHECKCAST in Foo.valueOf
// 1 CHECKCAST