Skip to content

"Inline Method" fails with type params #4167

@DanTup

Description

@DanTup
void test<T>(T a, T b) {
  print(a);
  print(b);
}
void f() {
  test(1, 2);
}

Trying to inline this method results in "No argument for the parameter "a"., type: 1". Removing <T> "fixes" it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    in editorRelates to code editing or language featuresin lsp/analysis serverSomething to be fixed in the Dart analysis serveris bugrelies on sdk changesSomething that requires changes in the Dart/Flutter SDK to ship before it will become available

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions