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.