Avoid passing Generic and KClass of same Class when inheriting

I don’t think there is a way around this right now. The problem with reified type parameters is that they require the function to be inlined, which can’t be done with constructors.

It might be possible for kotlin to implement something that could work like an inlined constructor, but I don’t think anything of the sorts has been discussed before. I’m also not sure how often this would be used, so this might just be stopped by the “minus 100 point rule”, because of unnecessary complexity.

1 Like