-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Open
Labels
P3A lower priority bug or feature requestA lower priority bug or feature requestarea-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
If an extension that overrides a built-in member is available in scope, could we allow a "Wrap with extension override" fix for it?
class A {
int operator %(int other) => other;
int get thing => 0;
}
void main() {
var a = A();
a % '';
String str = a.thing;
}
extension AE on A {
String operator %(String other) => other;
String get thing => '';
}
We'd have to be smart about this, but I think it is doable.
CC @bwilkerson
piedcipher
Metadata
Metadata
Assignees
Labels
P3A lower priority bug or feature requestA lower priority bug or feature requestarea-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