sdk icon indicating copy to clipboard operation
sdk copied to clipboard

`Create member` fixes don't handle generics

Open FMorschel opened this issue 4 months ago • 8 comments

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.

FMorschel avatar Jul 24 '25 13:07 FMorschel