-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
P4area-devexpFor issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.For issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.devexp-assistIssues with analysis server assistsIssues with analysis server assiststype-enhancementA request for a change that isn't a bugA request for a change that isn't a bug
Description
There is a Convert to getter assist for turning final fields into getters.
Also, for the following code:
extension type A(int i) {
final int a;
}We get:
Extension types can't declare instance fields.
Try replacing the field with a getter. extension_type_declares_instance_fieldI think we should make that assist a possible fix for this error.
I'll work on this.
Metadata
Metadata
Assignees
Labels
P4area-devexpFor issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.For issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.devexp-assistIssues with analysis server assistsIssues with analysis server assiststype-enhancementA request for a change that isn't a bugA request for a change that isn't a bug