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

Lower bound of generic parameter is not respected #28369

Closed
jacehensley-wf opened this issue Jan 12, 2017 · 1 comment
Closed

Lower bound of generic parameter is not respected #28369

jacehensley-wf opened this issue Jan 12, 2017 · 1 comment

Comments

@jacehensley-wf
Copy link

jacehensley-wf commented Jan 12, 2017

Dart Version: 1.21.0

Problem

  • Lower bound of generic parameters is not respected in strong mode.

Dartpad

Expected Behavior

  • Dart should realize that ReturnType is T.
@jacehensley-wf
Copy link
Author

Hmm, after working out more simplified example with @greglittlefield-wf, I see that the error is valid.

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

No branches or pull requests

1 participant