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

[AutoDiff] Fix crasher when type-checking mismatched derivative. #40347

Merged
merged 1 commit into from
Dec 1, 2021

Conversation

rxwei
Copy link
Contributor

@rxwei rxwei commented Dec 1, 2021

When checking the viability of an original function candidate as specified in a @derivative attribute, a candidate's signautre can have more generic requirements than the required signature. Such cases need to be checked and diagnosed.

Resolves SR-15530 / rdar://85845512.

When checking the viability of an original function candidate as specified in a `@derivative` attribute, a candidate's signautre can have more generic requirements than the required signature. Such cases need to be checked and diagnosed.

Resolves SR-15530 / rdar://85845512.
@rxwei
Copy link
Contributor Author

rxwei commented Dec 1, 2021

@swift-ci please test

Copy link
Contributor

@BradLarson BradLarson left a comment

Choose a reason for hiding this comment

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

Thanks for the quick fix! This was a weird edge case.

@rxwei rxwei merged commit 7150a8b into swiftlang:main Dec 1, 2021
@rxwei rxwei deleted the sr15530 branch December 1, 2021 20:31
@philipturner

This comment has been minimized.

@philipturner

This comment has been minimized.

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.

None yet

4 participants