Skip to content

Not show generic type of getter Flutter 3.16 #4863

@quyenvsp

Description

@quyenvsp

Describe the bug
Not show generic type of getter

To Reproduce

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
Screenshot 2023-11-29 150843
Screenshot 2023-11-29 150851

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.

  • Operating System and version: windows 11
  • VS Code version: 1.84.2
  • Dart extension version: v3.76.1
  • Dart/Flutter SDK version: 3.2.1 / 3.16.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    in editorRelates to code editing or language featuresin lsp/analysis serverSomething to be fixed in the Dart analysis serveris bugrelies on sdk changesSomething that requires changes in the Dart/Flutter SDK to ship before it will become available

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions