41a416da60
Delete all test methods (and empty test classes), since they'll be auto-generated
14 lines
236 B
Kotlin
14 lines
236 B
Kotlin
trait Creator<T> {
|
|
fun create() : T
|
|
}
|
|
|
|
class Actor(val code: String = "OK")
|
|
|
|
trait Factory : Creator<Actor>
|
|
|
|
class MyFactory() : Factory {
|
|
override fun create(): Actor = Actor()
|
|
}
|
|
|
|
fun box() : String = MyFactory().create().code
|