Hey everyone, I want to have a class that uses del...
# announcements
f
Hey everyone, I want to have a class that uses delagtion like this:
Copy code
class Foo(var target : SomeClass?) : SomeInterface by target {}
it seems though that delegation using
by
does not work with nullable members. Unfortunately this is some plugin architecture where I need to have a no-args constructor and therefore I can't make
target
into a
val
because it will be intialized later. Any idea? Thanks