I’d like to use class delegation to a generic interface, something like the following
class SomeClass (impl: T) : T by impl
The problem with this as is, is that the compiler says “Only classes and interfaces my service as supertypes”.
How can I specify that T is constrained to an interface or class