Skip to content

[6.0🍒] AST: fix isWrittenWithConstraints #74390

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

Merged
merged 2 commits into from
Jun 14, 2024

Conversation

kavon
Copy link
Member

@kavon kavon commented Jun 13, 2024

Surprisingly, there are some situations where an extension can end up
with _fewer_ constraints than the extended type. That was baked-in as an
assertion in this new-ish method.

I haven't figured out why that can happen in the reproducer only when
using `-interpret` mode. It didn't trigger the assertion for me when
compiling normally.

The fix is simple: check all the requirements, rather than using a
short-cut.

resolves rdar://125659789 / swiftlang#72719

(cherry picked from commit 2735492)
@kavon kavon requested a review from a team as a code owner June 13, 2024 15:07
@kavon
Copy link
Member Author

kavon commented Jun 13, 2024

@swift-ci test

@kavon kavon enabled auto-merge June 13, 2024 15:07
@kavon kavon requested a review from slavapestov June 13, 2024 15:08
This is a follow-up to clean-up swiftlang#74372

(cherry picked from commit e4ed330)
@kavon
Copy link
Member Author

kavon commented Jun 13, 2024

@swift-ci test

@kavon kavon merged commit 22cce0e into swiftlang:release/6.0 Jun 14, 2024
5 checks passed
@kavon kavon deleted the 6.0-rdar125659789 branch June 14, 2024 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants