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
[SR-995] Assertion "Interface type contains archetypes" after adding Sequence.Element #43607
Comments
CC @gregomni |
For posterity, what's the base revision you're applying the patch to? |
I'm trying this on top of #1699 |
That's not stable either; @gregomni could update the pull request, and PRs are always applied on top of the current master. Is your patch a combined patch? |
I'm not sure what your concern is – if it starts succeeding suddenly, I'm all for that. |
That's not a sound approach to tracking down a bug. Any bugs reported ought to be as reproducible as possible. So, base revision + patch is okay, but pull requests and references to non-Apple repositories are not (unless Greg commits to keeping a branch around). |
This is a bugreport for Greg's pull request. I don't see any other way to report this bug until the PR is merged. |
The code that ended up being the final commit in <https://github.com/apple/swift/pull/1699\> fixed the contains archetypes assertion. The next error with this patch is that the associated type name for ArrayLiteralConvertible is hard-coded into the compiler as "Element" and this patch changes that name. Made that part of the compiler more general in <https://github.com/apple/swift/pull/1821\>. (Now it just assumes there is a single associated type in ArrayLiteralConvertible but makes no assumption about its name.) |
Thanks, Greg! These two PRs fixed the issue, but I'm hitting https://bugs.swift.org/browse/SR-1058 next. |
Attachment: Download
Additional Detail from JIRA
md5: 670505243739d0f09e62b6009bef98d9
Issue Description:
When I apply the attached patch, the compiler crashes with an assertion failure:
The text was updated successfully, but these errors were encountered: