Reflection: add KClassifier.createType

#KT-8998 In Progress
This commit is contained in:
Alexander Udalov
2016-07-12 16:38:45 +03:00
parent 153e837a84
commit 1edf3c7809
8 changed files with 301 additions and 0 deletions
@@ -0,0 +1,16 @@
// WITH_REFLECT
import kotlin.test.assertEquals
class A<T1> {
inner class B<T2, T3> {
inner class C<T4>
}
}
fun foo(): A<Int>.B<Double, Float>.C<Long> = null!!
fun box(): String {
assertEquals("A<kotlin.Int>.B<kotlin.Double, kotlin.Float>.C<kotlin.Long>", ::foo.returnType.toString())
return "OK"
}