Skip to content
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

DelegatingStreamSubscription.onData relies on fuzzy arrows #307

Closed
leafpetersen opened this issue Oct 3, 2017 · 0 comments · Fixed by dart-archive/async#41
Closed

DelegatingStreamSubscription.onData relies on fuzzy arrows #307

leafpetersen opened this issue Oct 3, 2017 · 0 comments · Fixed by dart-archive/async#41

Comments

@leafpetersen
Copy link
Member

The definition of DelegatingStreamSubscription<T>.onData passes a function of type T -> void to the onData callback of a StreamSubscription<dynamic> which does not statically guarantee to respect the contract. This has been supported via the "fuzzy arrow" feature:

dart-lang/sdk#29630

This feature is being removed in Dart 2.0, and so this code needs to be fixed up.

nex3 referenced this issue in dart-archive/async Oct 3, 2017
nex3 referenced this issue in dart-archive/async Oct 3, 2017
mosuem referenced this issue Oct 14, 2024
@mosuem mosuem transferred this issue from dart-archive/async Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants