Skip to content

Add a test for a corner case missed by #41978. #58706

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
May 7, 2022

Conversation

CodaFi
Copy link
Contributor

@CodaFi CodaFi commented May 6, 2022

A member reference to a function with a dynamic 'Self' result type
can introduce a covariant return expression into the AST. This is
exposed by the (already deeply cursed) -self method on NSObject(Protocol).
Add a regression test and said cursed member to the mock SDK.

CodaFi added 2 commits May 5, 2022 18:21
A member reference to a function with a dynamic 'Self' result type
can introduce a covariant return expression into the AST. This is
exposed by the (already deeply cursed) -self method on NSObject(Protocol).
Add a regression test and said cursed member to the mock SDK.
These conformances are banned when using NSObjectProtocl in the real
SDK. Adding the `self` member has exposed these few places and started
diagnosing them as invalid again.
@CodaFi
Copy link
Contributor Author

CodaFi commented May 6, 2022

@swift-ci smoke test

2 similar comments
@CodaFi
Copy link
Contributor Author

CodaFi commented May 6, 2022

@swift-ci smoke test

@CodaFi
Copy link
Contributor Author

CodaFi commented May 7, 2022

@swift-ci smoke test

@CodaFi CodaFi merged commit a5c34af into swiftlang:main May 7, 2022
@CodaFi CodaFi deleted the return-to-sender branch May 7, 2022 18:05
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.

1 participant