@raulraja OK so I tried my theory and unfortunately there's a bug preventing it from working at the moment, because the type information we need is lost when generating the anonymous class! I already reported this in #kontributors, so if we manage to fix this, then we can do it for sure 😉