Skip to content

[Sema] Fix derived property setter logic. #21995

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

Conversation

dan-zheng
Copy link
Contributor

Derived property setters should inherit their parent's generic environment.
This logic already existed in declareDerivedPropertyGetter but wasn't copied
to declareDerivedPropertySetter for some reason.

Add test using a derived Differentiable.allDifferentiableVariables setter in
a generic nominal type.

Derived property setters should inherit their parent's generic environment.
This logic already existed in `declareDerivedPropertyGetter` but wasn't copied
to `declareDerivedPropertySetter` for some reason.

Add test using a derived `Differentiable.allDifferentiableVariables` setter in
a generic nominal type.
@dan-zheng dan-zheng added the tensorflow This is for "tensorflow" branch PRs. label Jan 19, 2019
@dan-zheng dan-zheng requested a review from rxwei January 19, 2019 00:54
@dan-zheng
Copy link
Contributor Author

Note that declareDerivedPropertySetter was added on the tensorflow branch and doesn't exist on master, so this change doesn't need to be upstreamed.

@dan-zheng
Copy link
Contributor Author

@swift-ci Please test tensorflow

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tensorflow This is for "tensorflow" branch PRs.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants