Skip to content

Not show generic type of getter Flutter 3.16 #4863

Closed

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

Activity

  1. added
    in editorRelates to code editing or language features
    in lsp/analysis serverSomething to be fixed in the Dart analysis server
    on Nov 29, 2023
  2. added this to the v3.78.0 milestone on Nov 29, 2023
  3. added
    relies on sdk changesSomething that requires changes in the Dart/Flutter SDK to ship before it will become available
    on Nov 29, 2023
  4. modified the milestones: v3.78.0, v3.80.0 on Nov 29, 2023
  5. DanTup commented on Nov 30, 2023

    @DanTup
    Member

    Fixed by dart-lang/sdk@7f9099e. The fix is in the analysis server so will ship in a future SDK release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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