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

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

Issue 14251021: Move invokeOn to InstanceMirror. (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/invocation_mirror2_test.dart
diff --git a/dart/tests/language/invocation_mirror2_test.dart b/dart/tests/language/invocation_mirror2_test.dart
index f93ac1e299ef7fe496c3488ce3624b040147d024..c07330cac0131cd0b3b380b1140fc3505ef3ea46 100644
--- a/dart/tests/language/invocation_mirror2_test.dart
+++ b/dart/tests/language/invocation_mirror2_test.dart
@@ -2,13 +2,14 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
+import "dart:mirrors" show reflect;
import "package:expect/expect.dart";
class GetName {
set flif(_) => "flif=";
}
-String getName(im) => im.invokeOn(new GetName());
+String getName(im) => reflect(new GetName()).delegate(im);
class C {
var im;
« no previous file with comments | « dart/tests/language/field_increment_bailout_test.dart ('k') | dart/tests/language/invocation_mirror_invoke_on2_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698