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

13 lines
210 B
Kotlin
Vendored

abstract class Foo<T> {
fun hello(id: T) = "Hi $id"
}
interface Tr {
fun hello(s : String)
}
class Bar: Foo<String>(), Tr {
}
fun box(): String = if (Bar().hello("Reg") == "Hi Reg") "OK" else "Fail"