Right, that works if you have an instance paramete...
# announcements
k
Right, that works if you have an instance parameter. But what if you only have a type parameter?
a
What about adding a type param as a property that returns a KClass then you can do checking on that?
k
Well we have a class,
T::class
, but you can't do normal type checking on that, eg. an exhaustive when doesn't work.
a
That makes sense
You could do an else but obvs not ideal