Skip to content

Occurrences not working correctly for annotations #62243

@FMorschel

Description

@FMorschel

Repro:

@C<int>(C<int>())
class C<T> {
  const C([Object? o]);
}

Here, the type argument inside the argument list doesn't get highlighted:

Image

Here, it seems like the annotation considers the first C a Type and not a constructor.

Image Image

CC @bwilkerson @DanTup

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-devexpFor issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions