There should be an analyzer hint for duplicate keys in a map pattern #50588
Labels
analyzer-warning
Issues with the analyzer's Warning codes
area-analyzer
Use area-analyzer for Dart analyzer issues, including the analysis server and code completion.
P2
A bug or feature request we're likely to work on
type-enhancement
A request for a change that isn't a bug
Milestone
Similar to the existing hint
EQUAL_KEYS_IN_MAP
. It would fire for code like this:(which has the surprising behaviour of matching a map of length 2 with a key
1.5
. See discussion at dart-lang/language#2657.)The text was updated successfully, but these errors were encountered: