-
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-warningIssues with the analyzer's Warning codesIssues with the analyzer's Warning codeslinter-false-positiveIssues related to lint rules that report a problem when it isn't a problem.Issues related to lint rules that report a problem when it isn't a problem.type-bugIncorrect behavior (everything from a crash to more subtle misbehavior)Incorrect behavior (everything from a crash to more subtle misbehavior)
Description
import 'package:meta/meta.dart';
class Foo {
@mustBeOverridden
void operator -() {}
}
class Bar extends Foo { // Missing concrete implementation of '-'.
@override
void operator -() {}
}
Inexplicably, this seems to be specific to just unary minus, as far as i can tell.
Additionally, attempting to auto-fix an unimplemented unary minus, it literally fills as:
@override
ReturnType operator unary-() {
// TODO: implement unary-
}Which is obviously incorrect, and implies that the issue lies somewhere in how the lint recognizes the name.
Dart SDK version: 3.10.0-75.1.beta (beta) (Thu Aug 7 07:58:56 2025 -0700) on "windows_x64"
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-warningIssues with the analyzer's Warning codesIssues with the analyzer's Warning codeslinter-false-positiveIssues related to lint rules that report a problem when it isn't a problem.Issues related to lint rules that report a problem when it isn't a problem.type-bugIncorrect behavior (everything from a crash to more subtle misbehavior)Incorrect behavior (everything from a crash to more subtle misbehavior)