a286c475e4
#KT-1939 fixed
13 lines
206 B
Kotlin
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"
|