mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-10 08:31:29 +00:00
19 lines
462 B
Kotlin
Vendored
19 lines
462 B
Kotlin
Vendored
// IGNORE_BACKEND_FIR: JVM_IR
|
|
// IGNORE_BACKEND: JS_IR, JS, NATIVE
|
|
// WITH_REFLECT
|
|
|
|
package test
|
|
|
|
import kotlin.test.assertEquals
|
|
|
|
enum class E { X, Y, Z }
|
|
|
|
fun box(): String {
|
|
assertEquals("fun values(): kotlin.Array<test.E>", E::values.toString())
|
|
assertEquals(listOf(E.X, E.Y, E.Z), E::values.call().toList())
|
|
assertEquals("fun valueOf(kotlin.String): test.E", E::valueOf.toString())
|
|
assertEquals(E.Y, E::valueOf.call("Y"))
|
|
|
|
return "OK"
|
|
}
|