Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(240)

Unified Diff: tests/language/naming_test.dart

Issue 10911206: Remove support for operator negate and replace occurrences with unary (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/language/condition_bailout_test.dart ('k') | tests/language/operator3_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/naming_test.dart
diff --git a/tests/language/naming_test.dart b/tests/language/naming_test.dart
index 65a43288264e1a612c8bc3bd658d9fc08f32aa29..2e734b45c1858d2a8ce2ba3e9206033c6562408f 100644
--- a/tests/language/naming_test.dart
+++ b/tests/language/naming_test.dart
@@ -177,8 +177,7 @@ class Hoisting {
f_ = () { return x; };
}
- // TODO(hausner): Rename to operator -.
- operator negate() {
+ operator -() {
var x = 3;
return () { return x + 1; };
}
@@ -483,7 +482,7 @@ class DartQuery {
$negate() => wrapped;
operator +(Object other) => 123;
- operator negate() => 444;
+ operator -() => 444;
}
$add(Object first, Object second) => second;
« no previous file with comments | « tests/language/condition_bailout_test.dart ('k') | tests/language/operator3_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698