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

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: Created 7 years, 10 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
Index: runtime/lib/string_base.dart
diff --git a/runtime/lib/string_base.dart b/runtime/lib/string_base.dart
index 8ed74b6413dd969022f5494f14818512e1c5c3b0..7c47ffcb9afaf92be662606574b145e6371604b6 100644
--- a/runtime/lib/string_base.dart
+++ b/runtime/lib/string_base.dart
@@ -46,7 +46,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;

Powered by Google App Engine
This is Rietveld 408576698