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

Unified Diff: dart/tests/language/super_call4_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_call4_test.dart
diff --git a/dart/tests/language/super_call4_test.dart b/dart/tests/language/super_call4_test.dart
index 079b8d21be425213b8e844620de18d5b255e9ebe..b60b3a45aae50bbf82c795402d1861085dfd66df 100644
--- a/dart/tests/language/super_call4_test.dart
+++ b/dart/tests/language/super_call4_test.dart
@@ -11,22 +11,22 @@ class C {
E e = new E();
bool noSuchMethod(Invocation im) {
- if (im.memberName == 'foo') {
+ if (im.memberName == const Symbol('foo')) {
return im.positionalArguments.isEmpty &&
im.namedArguments.isEmpty &&
im.invokeOn(e);
}
- if (im.memberName == 'bar') {
+ if (im.memberName == const Symbol('bar')) {
return im.positionalArguments.length == 1 &&
im.namedArguments.isEmpty &&
im.invokeOn(e);
}
- if (im.memberName == 'baz') {
+ if (im.memberName == const Symbol('baz')) {
return im.positionalArguments.isEmpty &&
im.namedArguments.length == 1 &&
im.invokeOn(e);
}
- if (im.memberName == 'boz') {
+ if (im.memberName == const Symbol('boz')) {
return im.positionalArguments.length == 1 &&
im.namedArguments.length == 1 &&
im.invokeOn(e);

Powered by Google App Engine
This is Rietveld 408576698