mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-12 15:53:40 +00:00
21 lines
426 B
Kotlin
Vendored
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"
|
|
}
|