22 lines
241 B
Kotlin
Vendored
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()
|
|
}
|