Here is what I want to achieve:
I have a general struct Future<Element> {} structure and another general Response<T> {} structure. I want to write a method that is in an extension for Future , which is valid only when the Element is Response<T> . It doesn't matter what T . So here is the code:
extension Future where Element == Response { }
But the fast compiler complains that the Link to the general "Answer" type requires arguments in <...> . Is there any other way to achieve this fast?
source share