-
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 onarea-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-refactoringIssues with analysis server refactoringsIssues with analysis server refactorings
Description
When using the Rename refactoring in IntelliJ IDEA, I found that named super parameters were not updated when the super class and the subclass were in different libraries. For instance for
// lib1.dart
class A {
int field;
A({required this.field});
}
// lib2.dart
import 'lib1.dart';
class B extends A {
B({required super.field});
}renaming field to field2 would only change the names in A, leaving an error in B:
// lib1.dart
class A {
int field2;
A({required this.field2});
}
// lib2.dart
import 'lib1.dart';
class B extends A {
B({required super.field}); // Error
}Metadata
Metadata
Assignees
Labels
P2A bug or feature request we're likely to work onA bug or feature request we're likely to work onarea-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-refactoringIssues with analysis server refactoringsIssues with analysis server refactorings