Nick Halase
02/17/2022, 7:37 PMKClass<*>
implementers of a sealed interface
? I know you can use the when
condition when you have an object instance, but I'm curious if I can iterate over all the possible KClasses there could be.Matthew Gast
02/17/2022, 8:01 PMKClass<*>
property called sealedSubclasses
, is that what you are looking for? IIRC, it will have entries if the class is a sealed interface/class and has sub-classes, otherwise it will be empty.Nick Halase
02/17/2022, 10:51 PM