Closed
Description
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)