-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
devexp-quick-fixIssues with analysis server (quick) fixesIssues with analysis server (quick) fixeslegacy-area-analyzerUse area-devexp instead.Use area-devexp instead.
Description
The autofix for use_super_params is correcting the following code...
class Base {
Base(this.value);
final int value;
}
class Extended extends Base {
Extended(final int value) : super(value);
}
... to ...
class Base {
Base(this.value);
final int value;
}
class Extended extends Base {
Extended(final super.value); // note the incorrect final here
}
When running this code, I get the following error:
Error: Can't have modifier 'final' here.
Try removing 'final'.
Extended(final super.value);
^^^^^
The autofix should have removed the "final" here.
(And I also would have expected the analyzer to complain about the incorrectly left behind "final" - instead of just getting an error when executing the program. Filed #48699 for that.)
Metadata
Metadata
Assignees
Labels
devexp-quick-fixIssues with analysis server (quick) fixesIssues with analysis server (quick) fixeslegacy-area-analyzerUse area-devexp instead.Use area-devexp instead.