Skip to content

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