Files
kotlin-fork/compiler/testData/codegen/regressions/kt1939.kt
T
Alexander Udalov a286c475e4 test for KT-1939
#KT-1939 fixed
2012-07-30 19:20:04 +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"