Reflection: add KClassifier.createType
#KT-8998 In Progress
This commit is contained in:
+16
@@ -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"
|
||||
}
|
||||
Reference in New Issue
Block a user