Files
kotlin-fork/compiler/testData/codegen/box/bridges/delegation.kt
T
2015-05-12 19:43:17 +02:00

12 lines
171 B
Kotlin

interface A<T> {
fun foo(): T
}
class B : A<String> {
override fun foo() = "OK"
}
class C(a: A<String>) : A<String> by a
fun box() = (C(B()) : A<String>).foo()