Skip to content

Version >= 1.4.1 is not (strong) analyzer clean #700

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
alhaad opened this issue Mar 30, 2016 · 1 comment
Closed

Version >= 1.4.1 is not (strong) analyzer clean #700

alhaad opened this issue Mar 30, 2016 · 1 comment

Comments

@alhaad
Copy link

alhaad commented Mar 30, 2016

I have a piece of dummy code:

import 'package:collection/collection.dart';                                     

int main() {                                                                     
  print(const SetEquality<String>().equals(["a", "b"].toSet(), ["a", "b"].toSet())); 
  return 0;                                                                      
}                                                                                

on running the dartanalyzer in strong mode, I get:

Analyzing [lib/main.dart]...
[info] The object type 'DefaultEquality<E>' cannot be assigned to a parameter of type 'Equality<String>' (/work/modular/src/repo_analyzer_error/lib/main.dart, line 4, col 9)
[info] The object type 'DefaultEquality<E>' cannot be assigned to a parameter of type 'Equality<String>' (/work/modular/src/repo_analyzer_error/lib/main.dart, line 7, col 6330)
@nex3
Copy link
Member

nex3 commented Mar 30, 2016

This looks like an analysis bug to me. I've filed dart-lang/sdk#26141 to track it.

@nex3 nex3 closed this as completed Mar 30, 2016
@mosuem mosuem transferred this issue from dart-archive/collection Oct 21, 2024
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

3 participants