Skip to content

void_checks quick-fix suggestion #60902

Open
@FMorschel

Description

@FMorschel

Repro:

void foo(void _) {}
void bar({void value}) {}

void main() {
  foo(0);
  bar(value: 0);
}

When the value is required, we should replace it with null, and when it isn't, we should remove the given parameter.

CC @bwilkerson

Metadata

Metadata

Assignees

No one assigned

    Labels

    P4area-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