pdpi
11/13/2018, 4:36 PMinterface Foo {}
class Bar(): Foo {}
class DelegatedFoo: Foo by foo {
val foo by lazy { Bar() }
}
stephan_marshay
11/13/2018, 4:46 PMinterface Foo {}
class Bar() : Foo {}
class DelegatedFoo private constructor(val foo: Foo) : Foo by foo {
constructor() : this(Bar())
}
pdpi
11/13/2018, 4:53 PMlazy
in that example is a placeholder, I need a delegated property of my own there.