-
-
Notifications
You must be signed in to change notification settings - Fork 240
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
ArraySection compile error: Type 'C' constrained to non-protocol, non-class type [Element]
#72
Comments
Since I can't really re-write all of that, basically I'm getting the error in the title trying to compile ArraySection in Xcode 10.2.1. For some reason that I can't explain, changing Collection to Sequence fixes it. 🤷♂ I think this is related to a recent update that added the Element associated type, but I'm honestly not sure. |
It looks like this is a namespacing issue. The compiler thinks that "Collection" is the DifferenceKit's Collection instead of the Swift.Collection version. Changing "Collection" to "Swift.Collection" also fixes this error. |
Hi @cnstoll , Thanks for your reporting. |
I can confirm this is a result of the namespace aliasing between Xcode 10.2, Swift 4.2 |
The same issue. Reproduced only in Archive, debug build works fine. Xcode: 12.5 |
Great. This template thing completely removed what I wrote.
The text was updated successfully, but these errors were encountered: