Open
Description
Specifically, we do not currently lint the following "raw" invocation but maybe we should?
List<T> makeList<T>() => <T>[];
void f() {
makeList<int>(); // OK
makeList(); // <== LINT?
}
By extension, this would likely carry over to similar advice for constructor tear-offs. (See: #58424.)
List<E> Function<E>(int, E) filledList = List.filled; // OK
filledList<int>(3, 3); // OK
filledList(3, 3); // LINT?
@davidmorgan: I believe this rule is banned internally but I wonder if you have an opinions?
@goderbauer: similarly, you all don't use this rule but wonder if you have thoughts?
/cc @bwilkerson
EDIT this issue started as a reflection on updating always_specify_types
to catch invocations. After some feedback and consideration, the better approach seems to be a new lint.