-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
P3A lower priority bug or feature requestA lower priority bug or feature requestdevexp-warningIssues with the analyzer's Warning codesIssues with the analyzer's Warning codeslegacy-area-analyzerUse area-devexp instead.Use area-devexp instead.
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.');
FMorschel
Metadata
Metadata
Assignees
Labels
P3A lower priority bug or feature requestA lower priority bug or feature requestdevexp-warningIssues with the analyzer's Warning codesIssues with the analyzer's Warning codeslegacy-area-analyzerUse area-devexp instead.Use area-devexp instead.