Hi, is there any possibility to make a restriction on generic interface, that the type parameter which we are passing is a sub-class of the class that implements the interface? Like in the screens, but when i would move class
UserPasswordChangedEventData
, or make it non-data class, the code would not compile
v
Vampire
12/29/2020, 3:23 PM
Do you mean "inner class" when you say "sub-class"?
m
Maciej Jelen
12/29/2020, 4:17 PM
yeah, sorry, i mean inner class, like in the screenshot