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

Unified Diff: dart/tests/language/super_operator_index6_test.dart

Issue 14066019: Change memberName and namedArguments in Invocation to use Symbol. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 8 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: dart/tests/language/super_operator_index6_test.dart
diff --git a/dart/tests/language/super_operator_index6_test.dart b/dart/tests/language/super_operator_index6_test.dart
index 57e3951b60fd94a1338158b40f1716e6482bd4cd..dced2c95d1aa8ef16fa20c60b64c0bfe699faabb 100644
--- a/dart/tests/language/super_operator_index6_test.dart
+++ b/dart/tests/language/super_operator_index6_test.dart
@@ -11,7 +11,7 @@ class A {
operator[]=(index, value) { indexField[index] = value; }
noSuchMethod(Invocation im) {
- if (im.memberName == '[]') {
+ if (im.memberName == const Symbol('[]')) {
Expect.equals(1, im.positionalArguments.length);
return indexField[im.positionalArguments[0]];
} else {

Powered by Google App Engine
This is Rietveld 408576698