Marc Knaup
07/25/2016, 2:41 PMUserService
. I implement a class which simply forwards all methods & properties to a lazy property which in turn references the underlying base implementation. Right now one would have to do that manually for every method & property.
It would be awesome if something like the following would be possible in Kotlin:
class LazyUserService(base: Lazy<UserService>) : UserService by base
It would be even better if there is a generic way to do that, e.g.:
class LazyInterface<interface T>(base: Lazy<T>) : T by base
What do you think?