Files
kotlin-fork/compiler/testData/codegen/box/bridges/substitutionInSuperClass/differentErasureInSuperClass.kt
T
Denis Zharkov 4c88e2a0bc Use original descriptor when mapping fake override
Otherwise wrong CONFLICTING_INHERITED_JVM_DECLARATIONS were reported

 #KT-10691 Fixed
2016-02-25 11:10:48 +03:00

16 lines
297 B
Kotlin
Vendored

public open class A<T> {
fun foo(x: T) = "O"
fun foo(x: A<T>) = "K"
}
// Shoudt not be reported CONFLICTING_INHERITED_JVM_DECLARATIONS
class B : A<A<String>>()
fun box(): String {
val x: A<String> = A()
val y: A<A<String>> = A()
val b = B()
return b.foo(x) + b.foo(y)
}