Skip to content

[CSGen] Fallback to a type variable if preferred type for placeholder… #36558

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 1 commit into from
Mar 24, 2021

Conversation

xedin
Copy link
Contributor

@xedin xedin commented Mar 23, 2021

… is invalid

Type inside of an editor placeholder is more of a hint than anything else,
so if it's incorrect let's diagnose that and use type variable instead to
allow solver to make forward progress.

Resolves: SR-14213
Resolves: rdar://74356736

@xedin xedin requested a review from hborla March 23, 2021 22:50
@xedin
Copy link
Contributor Author

xedin commented Mar 23, 2021

@swift-ci please smoke test

@xedin
Copy link
Contributor Author

xedin commented Mar 23, 2021

I'm going to deal with variable recycling after this lands.

… is invalid

Type inside of an editor placeholder is more of a hint than anything else,
so if it's incorrect let's diagnose that and use type variable instead to
allow solver to make forward progress.

Resolves: SR-14213
Resolves: rdar://74356736
@xedin
Copy link
Contributor Author

xedin commented Mar 24, 2021

@swift-ci please smoke test

@xedin
Copy link
Contributor Author

xedin commented Mar 24, 2021

@swift-ci please test Linux platform

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