Closed
Description
The new strict_top_level_inference
rule triggers a lint warning when using a wildcard (_) as a function parameter. I'm not sure if this is intentional, but I would expect the wildcard to be exempt since its type is irrelevant and cannot be used.
void foo() {
const ValueChanged<int> onChange = _onChange;
}
// Lint warning
void _onChange(_) => print('I do not need the value.');