Skip to content

Typedef implements ModelFunctionTyped. #2376

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
Oct 7, 2020

Conversation

srawlins
Copy link
Member

@srawlins srawlins commented Oct 7, 2020

The relationship is different from ModelFunctionTypedef which extends
ModelFunctionTyped because the typedef is the alias which contains a
function-typed element. Nevertheless, Typedef was always implementing
(approximately) the interface defined by ModelFunctionTyped because both types
are sent to the _callable template.

Additionally one change is made to the ModelFunctionTyped interface such that
Typedef perfectly implements ModelFunctionTyped.

  • Breaking change: Remove the typeParameters setter. The field is now final.

The relationship is different from ModelFunctionTypedef which _extends_
ModelFunctionTyped because the typedef is the alias _which contains_ a
function-typed element. Nevertheless, Typedef was always implementing
(approximately) the interface defined by ModelFunctionTyped because both types
are sent to the _callable template.

Additionally one change is made to the ModelFunctionTyped interface such that
Typedef perfectly implements ModelFunctionTyped.

* **Breaking change**: Remove the `typeParameters` setter. The field is now final.
@google-cla google-cla bot added the cla: yes Google CLA check succeeded. label Oct 7, 2020
@srawlins srawlins merged commit 3f0b8ba into dart-lang:master Oct 7, 2020
@srawlins srawlins deleted the func-typedef branch October 7, 2020 18:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Google CLA check succeeded.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants