Delegated implementations for properties and extension properties.

This commit is contained in:
Dmitry Petrov
2016-09-02 09:47:32 +03:00
committed by Dmitry Petrov
parent d27f22ae0e
commit e42116bb6a
7 changed files with 169 additions and 20 deletions
@@ -0,0 +1,13 @@
interface IFooBar {
fun foo()
fun bar()
}
object FooBarImpl : IFooBar {
override fun foo() {}
override fun bar() {}
}
class C : IFooBar by FooBarImpl {
override fun bar() {}
}