Skip to content

use_named_constants false-negatve with dot shorthand #62206

@FMorschel

Description

@FMorschel

Repro:

class A {
  const A();
  static const a = A();
}

const A a = .new(); // No lint
const b = A(); // use_named_constants

CC @kallentu @bwilkerson

I can take a look at this one.

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