Files
kotlin-fork/compiler/testData/codegen/boxInline/enum/valueOfNonReified.kt
T
2022-05-05 21:03:38 +00:00

22 lines
241 B
Kotlin
Vendored

// IGNORE_BACKEND: WASM
// WITH_STDLIB
// FILE: 1.kt
package test
inline fun myValueOf(): String {
return enumValueOf<Z>("OK").name
}
enum class Z {
OK
}
// FILE: 2.kt
import test.*
fun box(): String {
return myValueOf()
}