You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Inlay Hints appear in the wrong place when a method has a dart doc comment. #4160
Describe the bug
Inlay Hints for the return type of a method appear in the wrong place when a method has a dart doc comment. It appears to happen to getters and setters as well if they don't explicitly have their types written in the source code.
To Reproduce
Enable Inlay Hints and look at a method with doc comments where the there is no static type in the source code.
Expected behavior
The Inlay Hint showing the type should always appear after the doc comment and before the method name.
Activity
DanTup commentedon Sep 16, 2022
😬
Thanks! Got a fix at https://dart-review.googlesource.com/c/sdk/+/259584/. Will keep this open until it lands.
[analysis_server] Fix location of inlay hints for functions/methods w…
DanTup commentedon Sep 16, 2022
Fixed by dart-lang/sdk@c841c33 (ships with an SDK update, not Dart-Code).