let' say I have a sealed class with two options SC...
# announcements
s
let' say I have a sealed class with two options SC -> {A, B}, and I want to create an interface which takes A or B as argument. Is there any way to do so. I would like to implement this interface in a class that takes only A as argument and similarly for B.
s
Cant you just have
interface IF<T : SC> { }
?
a
same as you would do it with a regular class
s
thanks this works.