Skip to content

implicit_this_reference_in_initializer could have an Add late keyword fix #60729

@FMorschel

Description

@FMorschel

Consider:

class A {
  final int v;
  final bool isEven = v.isEven; // implicit_this_reference_in_initializer
  A(this.v);
}

This could be fixed by adding the late keyword.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3A lower priority bug or feature requestarea-devexpFor issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.devexp-quick-fixIssues with analysis server (quick) fixes

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions