Skip to content

[CSApply] Attempt value-to-opaque-result abstraction only after canon… #60568

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
Aug 16, 2022

Conversation

xedin
Copy link
Contributor

@xedin xedin commented Aug 16, 2022

…icalization

ExprRewriter::coerceToType should canonicalize contextual type before
attempting to use it for value abstraction, because sugared type could
have typealias references that hide their underlying opaque result types.

Resolves: rdar://98577451

@xedin
Copy link
Contributor Author

xedin commented Aug 16, 2022

@swift-ci please clean test

…icalization

`ExprRewriter::coerceToType` should canonicalize contextual type before
attempting to use it for value abstraction, because sugared type could
have typealias references that hide their underlying opaque result types.

Resolves: rdar://98577451
@xedin
Copy link
Contributor Author

xedin commented Aug 16, 2022

@swift-ci please test

@xedin xedin merged commit b02e16d into swiftlang:main Aug 16, 2022
@@ -0,0 +1,21 @@
// RUN: %target-typecheck-verify-swift -target %target-cpu-apple-macosx10.15
Copy link
Contributor

Choose a reason for hiding this comment

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

You can just pass -disable-availability-checking instead and remove the REQUIRES: lines.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

On it!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I wasn't sure whether it's supposed to work on Linux/Windows or not...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

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