Delegated implementations for properties and extension properties.
This commit is contained in:
committed by
Dmitry Petrov
parent
d27f22ae0e
commit
e42116bb6a
+13
@@ -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() {}
|
||||
}
|
||||
Reference in New Issue
Block a user