jimn
12/05/2019, 7:06 AMby
should be considered something like extremelyvisibleaggregatememberVtable
because you basically can only send a call through a one-way wormhole to the instance named unless you manually (and without intellij's help) "replace delegation by overrides" at the container level.
there should be by
, which does what is documented now, and a v2 by
by some other clever infix name which does delegation through the declarator's vtable of that interface.jimn
12/05/2019, 7:10 AMclass <T>ListOfOnly2(val listOf3OrMore:List<T>):List<T> by listOf3OrMore{override val size get()=2}
had surprising results for me.