tschuchort
12/14/2018, 10:59 PMthis
to a mixin class that implements an interface via delegation? (i.e. class Class : Interface by Mixin(this)
. It's possible to pass this
but for some reason it refers to the companion instead of the instance itself. I realize that I could just instantiate the mixin in the class body and delegate all methods manually, but that's quite annoying.cbruegg
12/15/2018, 11:42 AMtschuchort
12/15/2018, 12:07 PMcbruegg
12/15/2018, 12:09 PMd
using the constructor and then add an init block like this: init { d.initWith(this) }
cbruegg
12/15/2018, 12:09 PMinit
block is probably the first place where you can get a reference to the instance