"Add type annotations" doesn't handle dynamic correctly #56730
Labels
analyzer-quick-fix
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-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
In VSCode, when I use the code suggestion "Add type annotations" and the type includes
dynamic
, then it will insert<>
instead of<dynamic>
. I think this feature uses analyzer, which is why I filed this here.For instance, if I have the following declaration:
and I invoke "Add type annotation", it produces:
instead of the expected:
Dart version
The text was updated successfully, but these errors were encountered: