mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-16 08:31:35 +00:00
14 lines
329 B
Kotlin
Vendored
14 lines
329 B
Kotlin
Vendored
// IGNORE_BACKEND: JS_IR
|
|
// TODO: muted automatically, investigate should it be ran for JS or not
|
|
// IGNORE_BACKEND: JS, NATIVE
|
|
|
|
// WITH_REFLECT
|
|
|
|
import kotlin.reflect.full.declaredMemberProperties
|
|
|
|
class A(val foo: String)
|
|
|
|
fun box(): String {
|
|
return (A::class.declaredMemberProperties.single()).invoke(A("OK")) as String
|
|
}
|