mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
20 lines
333 B
Kotlin
Vendored
20 lines
333 B
Kotlin
Vendored
interface A<T> {
|
|
fun f(x: T): T
|
|
}
|
|
|
|
open class B {
|
|
open fun f(x: String): String = x
|
|
}
|
|
|
|
open class C : B(), A<String>
|
|
|
|
class D : C()
|
|
|
|
fun box(): String {
|
|
return (D() as A<String>).f("OK")
|
|
}
|
|
|
|
// class D should not have an additional bridge
|
|
// 1 public synthetic bridge f\(Ljava/lang/Object;\)Ljava/lang/Object;
|
|
// 1 bridge
|