JVM_IR: cast argument of enumValueOf to String in bytecode
Generic functions and implicit casts may return a supertype instead. #KT-45865 Fixed
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
// IGNORE_BACKEND: WASM
|
||||
enum class E { OK }
|
||||
|
||||
fun <T> id(x: T) = x
|
||||
|
||||
fun box() = enumValueOf<E>(id("OK")).name
|
||||
Reference in New Issue
Block a user