Files
kotlin/compiler/testData/codegen/box/reflection/properties/genericOverriddenProperty.kt
2016-11-09 21:41:12 +03:00

21 lines
426 B
Kotlin
Vendored

// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS
// 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"
}