Inlay hints not shown on collection control statements #4891
Labels
in editor
Relates to code editing or language features
in lsp/analysis server
Something to be fixed in the Dart analysis server
is bug
relies on sdk changes
Something that requires changes in the Dart/Flutter SDK to ship before it will become available
Milestone
Describe the bug
When
var
is used in a for loop inside a collection, it doesn't show the type of the object.To Reproduce
Paste this code into any function:
Expected behavior
Screenshots

Please complete the following information:
You can run the Dart: Collect Diagnostic Information command from the VS Code command palette (
F1
) to easily capture thisWorkspace Environment
Output from 'dart info'
C:\Global\sdk\dart-sdk\bin\dart.exe info
If providing this information as part of reporting a bug, please review the information
below to ensure it only contains things you're comfortable posting publicly.
General info
Project info
Process info
Output from 'flutter doctor'
C:\Global\sdk\flutter\bin\flutter.bat doctor -v
The text was updated successfully, but these errors were encountered: