blob: 05742940ef7ebc80c20e852c742896aa841968a0 [file]
// FILE: 1.kt
// WITH_RUNTIME
// KJS_WITH_FULL_RUNTIME
package test
inline fun <reified Y : Enum<Y>> myValues2(): String {
val values = enumValues<Y>()
return values.joinToString("")
}
inline fun <reified T : Enum<T>> myValues(): String {
return myValues2<T>()
}
enum class Z {
O, K
}
// FILE: 2.kt
import test.*
fun box(): String {
return myValues<Z>()
}