You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I have another Result structure in my code and it's conflicting with this one.
How can I use Result.Result for this enum?
I'm getting the error Reference to generic type 'Result' requires arguments in <...> as if it thinking it's the enum, not the namespace.
The text was updated successfully, but these errors were encountered:
I found a solution that works for my scenario. The issue was actually with importing Alamofire in the same file I was trying to use my own custom Result type.
FWIW, importing Moya in the same file does not cause this conflict. So, as far as I can tell, I think the namespace issue is with Alamofire and the issue may need to be brought up with them.
I have the same problem. I don't want to import Result in every swift file. So I want to make a type alias like this typealias Result = Result.Result, but the compiler just doesn't understand this.
Hi, I have another
Result
structure in my code and it's conflicting with this one.How can I use
Result.Result
for this enum?I'm getting the error
Reference to generic type 'Result' requires arguments in <...>
as if it thinking it's the enum, not the namespace.The text was updated successfully, but these errors were encountered: