Skip to content

update unnecessary_parenthesis for constructor tear-offs #58495

@pq

Description

@pq

Follow-up from #58424.

Some cases to consider:

  var makeUtcDate = DateTime.utc;
  (makeUtcDate)(1); // LINT
  (DateTime.utc)(1); // LINT
  (List<int>.filled)(3, 0); // LINT
  (List.filled)<int>(3, 0); // OK
  var tearoff = (List<int>.filled); // LINT
  (List<int>).toString(); //OK

/fyi @srawlins

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions