Files
kotlin-fork/compiler/testData/codegen/box/classes/kt1345.kt
T
Mark Punzalan 5afab1ac2b [FIR] FIR2IR: Populate calls with type arguments and function type
parameters with bounds/supertypes.
2019-11-25 09:37:47 +03:00

14 lines
244 B
Kotlin
Vendored

interface Creator<T> {
fun create() : T
}
class Actor(val code: String = "OK")
interface Factory : Creator<Actor>
class MyFactory() : Factory {
override fun create(): Actor = Actor()
}
fun box() : String = MyFactory().create().code