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

12 lines
213 B
Kotlin
Vendored

import kotlin.reflect.KMemberProperty
class A<T> {
val result = "OK"
}
fun box(): String {
val k = A::class.properties.single()
k : KMemberProperty<A<*>, *>
return k.get(A<String>()) as String
}