-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'Error' is ambiguous for type lookup in this context. #182
Comments
@JinHo-C Replacing |
We should slate a name change for the next major version release. If another library is extending from |
I agree it's probably a better design decision to name things so they don't conflict with the standard library. However, if another library defines an enum or class called Error that adopts Error without specifying Swift.Error, that should cause a compile error:
|
I was thinking of a namespace issue, but I guess in my example it's not an issue due to the third party library not having a dependency on |
Hello,
When I import Kitura-net (KituraNet), I get errors like below.
KituraNet causes this error because it has a "public" enum named Error on Error.swift.
As you know, Swift 3 uses Error instead of NSError now.
So, I think it should be fixed.
The text was updated successfully, but these errors were encountered: