Skip to content

Parameterize several mixins to avoid override errors when compiling with CFE#14327

Closed
mraleph wants to merge 1 commit intoflutter:masterfrom
mraleph:fix-mixins
Closed

Parameterize several mixins to avoid override errors when compiling with CFE#14327
mraleph wants to merge 1 commit intoflutter:masterfrom
mraleph:fix-mixins

Conversation

@mraleph
Copy link
Member

@mraleph mraleph commented Jan 29, 2018

This PR is not yet for commit - but rather for informative purposes (see dart-lang/sdk#31984)

This PR adds type parameters to TickerProviderStateMixin, SingleTickerProviderStateMixin, AutomaticKeepAliveClientMixin and RenderProxyBoxMixin.

Having type parameters ensures that we don't have instantiations of the same class with different type arguments appearing in superinterfaces of mixin application.

/cc @Hixie @leafpetersen

@Hixie
Copy link
Contributor

Hixie commented Jan 30, 2018

People hate SingleTickerProviderStateMixin enough as it is, I don't think we can afford to make it even more complicated.

@Hixie
Copy link
Contributor

Hixie commented Feb 5, 2018

Can this PR be closed now?

@mraleph
Copy link
Member Author

mraleph commented Feb 5, 2018

Closing: a smaller version will be merged separately.

@mraleph mraleph closed this Feb 5, 2018
@mraleph mraleph deleted the fix-mixins branch February 5, 2018 22:02
@mraleph mraleph restored the fix-mixins branch February 7, 2018 11:10
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants