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

Unified Diff: tests/language/naming_test.dart

Issue 10830253: Support for new operator - (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 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/language_dart2js.status ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/naming_test.dart
===================================================================
--- tests/language/naming_test.dart (revision 10521)
+++ tests/language/naming_test.dart (working copy)
@@ -177,6 +177,7 @@
f_ = () { return x; };
}
+ // TODO(hausner): Rename to operator -.
operator negate() {
var x = 3;
return () { return x + 1; };
@@ -191,7 +192,6 @@
Expect.equals(1, (h.f_)());
var f = -h;
Expect.equals(4, f());
- Expect.equals(4, h.negate()());
Expect.equals(7, h[4]());
}
}
« no previous file with comments | « tests/language/language_dart2js.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698