Unspecified static warning: calling negate operator #3283
Labels
area-language
Dart language related items (some items might be better tracked at github.com/dart-lang/language).
Milestone
This issue was originally filed by ms...@unipro.ru
The spec in the section 10.25 says: "The expression -e is equivalent to the method invocation e.negate()".
But dartc produces an unspecified warning when calling operator negate as method:
main() {
1.negate(); // warning: int has no method named "negate"
}
The text was updated successfully, but these errors were encountered: