Allow implicit dynamic to be inferred from explicit dynamic #27624
Labels
area-analyzer
Use area-analyzer for Dart analyzer issues, including the analysis server and code completion.
strict-analysis-needed
Mark issues where strict-raw-types, strict-inference and similar analysis options were helpful
type-enhancement
A request for a change that isn't a bug
Consider the following code:
When I run
dartanalyzer --strong --no-implicit-dynamic
on this, I get:This seems counterproductive. I'm explicitly declaring types at my API boundaries, and I expect them to be inferred elsewhere, just like they would be if I'd written
<String>
instead of<dynamic>
.The text was updated successfully, but these errors were encountered: