Fix generic class literals, substitute type parameters with stars
This commit is contained in:
+11
@@ -0,0 +1,11 @@
|
||||
import kotlin.reflect.KMemberProperty
|
||||
|
||||
class A<T> {
|
||||
val result = "OK"
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
val k = A::class.getProperties().single()
|
||||
k : KMemberProperty<A<*>, *>
|
||||
return k.get(A<String>()) as String
|
||||
}
|
||||
Reference in New Issue
Block a user