NNBD: Map [] operator accepts null even when keys are non-nullable #58427
Labels
devexp-linter
Issues with the analyzer's support for the linter package
legacy-area-analyzer
Use area-devexp instead.
linter-lint-request
Consider the following:
The current behavior is,
map[null]
compiles (and returnnull
)I would expect it to emit a compilation error instead.
This appears to be voluntary, considering
ma[null] =
correctly does not compile.Maybe we should have a lint?
The text was updated successfully, but these errors were encountered: