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

14 lines
244 B
Kotlin

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