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