Files
kotlin-fork/compiler/testData/codegen/regressions/kt1345.kt
T
Alex Tkachman eb017d8a2e fix for 1345
2012-02-26 09:38:07 +02:00

13 lines
235 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