kyonifer
12/30/2016, 8:11 PMclass A : B by C() {
// need to set a variable in the object C() returned
}
Options I know of:
1) pass in a C instance to the constructor of A with a default, but this leaks implementation details to the API
2) use A::class.java.getDeclaredField("\$\$delegate_0")
, but thats a mess and probably not reliable in the future
3) I could easily solve this issue using inheritance, but conceptually inheritance doesnt make sense for my problem, delegation does