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
Not show generic type of getter Flutter 3.16 #4863
class BaseState<T> {
late final T? data;
T? get test => data;
}
final data = (BaseState<bool?>()).data;
final test = (BaseState<bool?>()).test;
Expected behavior
Hover .test should show Type: bool? like .data does.
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 this information or provide it manually.
Activity
[analysis_server] Fix static type on hovers for non-synthetic getters…
DanTup commentedon Nov 30, 2023
Fixed by dart-lang/sdk@7f9099e. The fix is in the analysis server so will ship in a future SDK release.