mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
22 lines
249 B
Kotlin
Vendored
22 lines
249 B
Kotlin
Vendored
// FILE: 1.kt
|
|
// WITH_RUNTIME
|
|
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()
|
|
}
|