Skip to content

Fuzzy arrow inconsistency #31119

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

Closed
kevmoo opened this issue Oct 17, 2017 · 2 comments
Closed

Fuzzy arrow inconsistency #31119

kevmoo opened this issue Oct 17, 2017 · 2 comments
Assignees

Comments

@kevmoo
Copy link
Member

kevmoo commented Oct 17, 2017

Reproduced on 2.0.0-dev.3.0

void func<T>(List<T> list, int compare(T a, T b), List<T> target) {
  func(list, compare, target);
  //         ^ uses_dynamic_as_bottom

  func(list, compare, <T>[]);
  //         ^ fine

  func(list, compare, target as List<T>);
  //         ^ fine   ^ unnecessary_cast

  func(list, compare, list);
  //         ^ fine
}
@leafpetersen
Copy link
Member

Duplicate of #30980 .

@kevmoo
Copy link
Member Author

kevmoo commented Oct 17, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants