Files
kotlin-fork/compiler/testData/codegen/box/enum/enumValueOf.kt
T
pyos cc7187e49b JVM_IR: cast argument of enumValueOf to String in bytecode
Generic functions and implicit casts may return a supertype instead.

 #KT-45865 Fixed
2021-04-13 13:24:24 +02:00

7 lines
109 B
Kotlin
Vendored

// IGNORE_BACKEND: WASM
enum class E { OK }
fun <T> id(x: T) = x
fun box() = enumValueOf<E>(id("OK")).name