I have an interface X and an implementation of X called Y.
The problem is that I have a method which receives chan X as a parameter, but when I pass the variable channel, which is of type Y, I get the error "Cannot use 'channel' (type chan Y) as type chan X".
I have ensured that Y does indeed implement all of X's methods but so I'm unsure of how to solve this problem. Any help on why this is happening would be greatly appreciated!
Thank you