Skip to content

[Sema] Fix derived property setter logic.#21995

Merged
dan-zheng merged 1 commit into
swiftlang:tensorflowfrom
dan-zheng:fix-derived-differentiable
Jan 19, 2019
Merged

[Sema] Fix derived property setter logic.#21995
dan-zheng merged 1 commit into
swiftlang:tensorflowfrom
dan-zheng:fix-derived-differentiable

Conversation

@dan-zheng
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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