Files
kotlin-fork/compiler/testData/codegen/boxInline/enum/valuesNonReified.kt
T
2021-10-25 00:14:19 +03:00

23 lines
274 B
Kotlin
Vendored

// WITH_RUNTIME
// 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()
}