-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
P2A bug or feature request we're likely to work onA bug or feature request we're likely to work ondevexp-warningIssues with the analyzer's Warning codesIssues with the analyzer's Warning codesfeature-wildcard-variablesImplementation of the wildcard variables featureImplementation of the wildcard variables featurelegacy-area-analyzerUse area-devexp instead.Use area-devexp instead.type-enhancementA request for a change that isn't a bugA request for a change that isn't a bug
Description
Examples:
Initializing expression is essentially dead code:
int f() => throw StateError('unreachable');
void g() {
late int _ = f();
late final int _ = f();
}Variable declaration is unnecessary (can't be accessed or assigned to):
void f() {
late int _;
late final int _;
}Discussion: dart-lang/language#3798
Metadata
Metadata
Assignees
Labels
P2A bug or feature request we're likely to work onA bug or feature request we're likely to work ondevexp-warningIssues with the analyzer's Warning codesIssues with the analyzer's Warning codesfeature-wildcard-variablesImplementation of the wildcard variables featureImplementation of the wildcard variables featurelegacy-area-analyzerUse area-devexp instead.Use area-devexp instead.type-enhancementA request for a change that isn't a bugA request for a change that isn't a bug