Files
kotlin-fork/compiler/testData/codegen/box/reflection/properties/genericClassLiteralPropertyReceiverIsStar.kt
T

13 lines
210 B
Kotlin
Vendored

// 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
}