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

24 lines
297 B
Kotlin
Vendored

// IGNORE_BACKEND: WASM
// WITH_STDLIB
// KJS_WITH_FULL_RUNTIME
// FILE: 1.kt
package test
inline fun myValues(): String {
val values = enumValues<Z>()
return values.joinToString("")
}
enum class Z {
O, K
}
// FILE: 2.kt
import test.*
fun box(): String {
return myValues()
}