Skip to content

[5.5][Diagnostics] Ignore result type failures if one side is a hole #38278

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
Jul 8, 2021

Conversation

xedin
Copy link
Contributor

@xedin xedin commented Jul 6, 2021

Cherry-pick of #38235


  • Explanation:

Fixes a situation where the type-checker failed to produce a diagnostic.

If one of the sides in a application result conversion is a hole
it could only mean that the fix has been recorded earlier (at the
point where hole was introduced) and failure at function result
position could be safely ignored.

Resolves: rdar://79757320

@xedin xedin added the r5.5 label Jul 6, 2021
@xedin xedin requested a review from a team as a code owner July 6, 2021 20:58
@xedin
Copy link
Contributor Author

xedin commented Jul 6, 2021

@swift-ci please clean test

If one of the sides in a application result conversion is a hole
it could only mean that the fix has been recorded earlier (at the
point where hole was introduced) and failure at function result
position could be safely ignored.

Resolves: rdar://79757320
@xedin xedin force-pushed the rdar-79757320-5.5 branch from 4099861 to 7c09943 Compare July 6, 2021 22:10
@xedin
Copy link
Contributor Author

xedin commented Jul 6, 2021

@swift-ci please clean test

@swiftlang swiftlang deleted a comment from swift-ci Jul 6, 2021
@swiftlang swiftlang deleted a comment from swift-ci Jul 6, 2021
@xedin
Copy link
Contributor Author

xedin commented Jul 7, 2021

@swift-ci please nominate

@xedin xedin merged commit 499cefd into swiftlang:release/5.5 Jul 8, 2021
@AnthonyLatsis AnthonyLatsis added 🍒 release cherry pick Flag: Release branch cherry picks swift 5.5 labels Jan 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍒 release cherry pick Flag: Release branch cherry picks swift 5.5
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants