Files
kotlin-fork/compiler/testData/codegen/box/bridges/kt1939.kt
T
Alexander Udalov 41a416da60 Move blackBoxFile() testData to box/ directory
Delete all test methods (and empty test classes), since they'll be
auto-generated
2013-01-28 18:20:17 +04:00

13 lines
206 B
Kotlin

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