sdk icon indicating copy to clipboard operation
sdk copied to clipboard

`void_checks` quick-fix suggestion

Open FMorschel opened this issue 4 months ago • 3 comments

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

FMorschel avatar Jun 12 '25 16:06 FMorschel