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

Unified Diff: runtime/lib/string_base.dart

Issue 12441003: Rename String.concat to operator+. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 7 years, 9 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 | « runtime/lib/invocation_mirror_patch.dart ('k') | runtime/tests/vm/dart/inline_stack_frame_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/string_base.dart
diff --git a/runtime/lib/string_base.dart b/runtime/lib/string_base.dart
index 6e76f2ca61cff35f91176b92496cd006d3316ee6..660538c0dc52bda44d70463b0d546f7b1f9bc3d8 100644
--- a/runtime/lib/string_base.dart
+++ b/runtime/lib/string_base.dart
@@ -39,7 +39,9 @@ class _StringBase {
return this.length == 0;
}
- String concat(String other) native "String_concat";
+ String operator +(String other) native "String_concat";
+
+ String concat(String other) => this + other;
String toString() {
return this;
« no previous file with comments | « runtime/lib/invocation_mirror_patch.dart ('k') | runtime/tests/vm/dart/inline_stack_frame_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698