Files
kotlin-fork/compiler/testData/codegen/box/reflection/properties/genericClassLiteralPropertyReceiverIsStar.kt
T
2016-11-09 21:41:12 +03:00

16 lines
306 B
Kotlin
Vendored

// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS
// WITH_REFLECT
import kotlin.reflect.*
class A<T> {
val result = "OK"
}
fun box(): String {
val k: KProperty1<A<*>, *> = A::class.memberProperties.single()
return k.get(A<String>()) as String
}