Files
kotlin-fork/compiler/testData/codegen/box/reflection/properties/genericOverriddenProperty.kt
T
Alexander Udalov 90eafe0d71 Fix reflective access on overridden generic property reference
Generation of callable reference's signature in codegen should use the same
mechanism for obtaining the signature as the runtime in RuntimeTypeMapper,
namely DescriptorUtils.unwrapFakeOverride(...).original

 #KT-13700 Fixed
2016-09-12 10:39:21 +03:00

18 lines
330 B
Kotlin
Vendored

// WITH_REFLECT
// KT-13700 Exception obtaining descriptor for property reference
import kotlin.test.assertEquals
interface H<T> {
val parent : T?
}
interface A : H<A>
fun box(): String {
assertEquals("A?", A::parent.returnType.toString())
assertEquals("T?", H<A>::parent.returnType.toString())
return "OK"
}