Skip to content

fix(jsii): Validate overriding does not affect optionality#549

Merged
eladb merged 2 commits intomasterfrom
rmuller/add-optinoality-stability-check
Jun 24, 2019
Merged

fix(jsii): Validate overriding does not affect optionality#549
eladb merged 2 commits intomasterfrom
rmuller/add-optinoality-stability-check

Conversation

@RomainMuller
Copy link
Copy Markdown
Contributor

Optionality must remain unchancged when overriding methods and
properties, such that types are pure with respects to Liskov's
substitution.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Optionality must remain unchancged when overriding methods and
properties, such that types are pure with respects to Liskov's
substitution.
@RomainMuller RomainMuller requested a review from a team as a code owner June 24, 2019 14:54
Copy link
Copy Markdown
Contributor

@eladb eladb left a comment

Choose a reason for hiding this comment

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

Can we add a test that verifies that this is caught between base/derived and abstract-base/derived

@RomainMuller RomainMuller requested a review from eladb June 24, 2019 15:43
@eladb eladb merged commit 8c826c1 into master Jun 24, 2019
@eladb eladb deleted the rmuller/add-optinoality-stability-check branch June 24, 2019 15:52
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