Implicit dynamic complains about Object-typed generics #27625
Labels
legacy-area-analyzer
Use area-devexp instead.
P2
A bug or feature request we're likely to work on
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
If I have the following Dart code:
and I run
dartanalyzer --strong --no-implicit-dynamic
on it, I get:I'd expect the analyzer to infer
List<Object>
. If I change<Object>
to<String>
, inference works as expected.The text was updated successfully, but these errors were encountered: