Skip to content

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

Closed
@alhaad

Description

@alhaad

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)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions