mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
12 lines
289 B
Kotlin
Vendored
12 lines
289 B
Kotlin
Vendored
enum class Foo {
|
|
A, B, C { override fun result() = "OK" };
|
|
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 |