Skip to content

Inline values showing up for FunctionType parameters when the names match with other declarations #61099

@FMorschel

Description

@FMorschel

Repro:

void main() {
  foo(40, callbackWithLongNameSoItGetsSplit: (value) => value);
}

void foo(
  int value, {
  required void Function(int value) callbackWithLongNameSoItGetsSplit,
}) {
  print(value);
  callbackWithLongNameSoItGetsSplit(value);
}
Image

CC @DanTup

Metadata

Metadata

Assignees

Labels

P2A bug or feature request we're likely to work onarea-devexpFor issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.devexp-lspIssues with analysis server's support of Language Server Protocoltype-bugIncorrect behavior (everything from a crash to more subtle misbehavior)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions