Fix generic class literals, substitute type parameters with stars

This commit is contained in:
Alexander Udalov
2015-03-08 15:49:07 +03:00
parent 6468515d99
commit dc4dfbeec1
3 changed files with 25 additions and 2 deletions
@@ -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
}