Skip to content

Create member fixes don't handle generics #61186

@FMorschel

Description

@FMorschel

Repro:

class A<T> {}

T? f<T>(A<T> a) => a.method();
T? g<T>(A<T> a) => a.getter;
void h<T>(A<T> a, T? o) => a.setter = o;
T? Function() i<T>(A<T> a) => a.methodTearoff;

Whereas if you select the extension member fixes, they do. We should probably make them coherent here.

I'll take a look at this.

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) fixestype-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