blob: 3933f9c552ee8c87b2c420824e41891665f75756 [file]
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