fix for 1345

This commit is contained in:
Alex Tkachman
2012-02-26 09:38:07 +02:00
parent 010090cd51
commit eb017d8a2e
4 changed files with 126 additions and 95 deletions
@@ -0,0 +1,13 @@
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