Lint that flags uses of Map, Set, or List with keys outside the domain of the type #58604
Labels
analyzer-linter
Issues with the analyzer's support for the linter package
area-analyzer
Use area-analyzer for Dart analyzer issues, including the analysis server and code completion.
According to #48030, it's intentional that you can do things like:
It would be nice if that tripped a lint to warn you that you're doing something almost certainly invalid.
This would apply to all the methods and operators on the container classes that are defined to take
Object?
instead ofK
.The text was updated successfully, but these errors were encountered: