-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Open
Labels
area-devexpFor issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.For issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.
Description
While fixing #61186, I noticed this repro below had no Create method fix:
class A {}
T? Function<T>() g(A a) => a.test<T>;I've made it work, but if we had:
class A {}
int Function() g(A a) => a.test<int>; // Note this is not a `TypeParameterType`We should be able to create new type arguments for something like:
class A {
int test<T>() {}
}
int Function() g(A a) => a.test<int>;We'd have to think of the correct way to create those type arguments, but I think we can probably come up with a reasonable definition.
The same goes for the invocation case, for both method and function. We currently would create a method/function with no type parameters:
class A {}
int? g(A a) => a.test<int>();This issue is to track fixing the second case only, since the first case will be handled on a new CL for #61186.
CC @bwilkerson
Metadata
Metadata
Assignees
Labels
area-devexpFor issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.For issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.