Skip to content

[Sema] Do not attempt openning same generic argument twice while checking default parameter #61180

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
Sep 20, 2022

Conversation

LucianoPAlmeida
Copy link
Contributor

Use the already opened type variable for same generic argument instead of attempting to open it twice.

Resolves #61061

Copy link
Contributor

@xedin xedin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, @LucianoPAlmeida!

@xedin
Copy link
Contributor

xedin commented Sep 19, 2022

@swift-ci please test

@LucianoPAlmeida
Copy link
Contributor Author

@swift-ci Please test

@LucianoPAlmeida
Copy link
Contributor Author

@swift-ci Please test macOS platform

@LucianoPAlmeida LucianoPAlmeida merged commit e458b53 into swiftlang:main Sep 20, 2022
@LucianoPAlmeida LucianoPAlmeida deleted the crash-default branch September 20, 2022 12:26
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.

(lib/Sema/ConstraintSystem.cpp) ConstraintSystem::openGenericParameter: Assertion `result.second' failed!
2 participants