Skip to content
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

[6.1][PreCheckTarget] Consider UnresolvedSpecializeExpr a chain expression #77814

Open
wants to merge 1 commit into
base: release/6.1
Choose a base branch
from

Conversation

rintaro
Copy link
Member

@rintaro rintaro commented Nov 22, 2024

Cherry-pick #77813 into release/6.1

Explanation: Fix a regression caused by #76981. UnresolvedSpecializeExpr should be a part of OptionalEvaluationExpr. This change fixes the OptionalEvaluationExpr regression. Also this makes unresolved member chain expressions have ability to contain specialized nested types.
Scope: Expression type checker
Risk: Low. The change is simple and targeted
Testing: Added regression test cases
Issuee: rdar://140378864
Reviewer: Pavel Yaskevich (@xedin)

Optional chain and unresolved member chain should consider
a generic specialization as a chain expression.

rdar://140378864
(cherry picked from commit bee4cfe)
@rintaro rintaro requested a review from a team as a code owner November 22, 2024 21:28
@rintaro
Copy link
Member Author

rintaro commented Nov 22, 2024

@swift-ci Please test

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.

3 participants