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

20 lines
352 B
Kotlin
Vendored

// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS
// WITH_REFLECT
import kotlin.test.assertEquals
interface H<T> {
fun foo(): T?
}
interface A : H<A>
fun box(): String {
assertEquals("A?", A::foo.returnType.toString())
assertEquals("T?", H<A>::foo.returnType.toString())
return "OK"
}