a way for interfaces and superclasses to define th...
# language-proposals
h
a way for interfaces and superclasses to define that an inheritor must have static members of its own of some type. AKA you have to have an object that extends as such
d
I'm guessing you want to access these methods polymorphically? You could make an interface for `companion object`s to inherit I guess and sprinkle some delegation.
h
you can't force inheritors to have constructors that take certain params, but maybe you could force inheritors to have an object of a type that has an
invoke
that takes those params