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

Unified Diff: test/codegen/lib/mirrors/function_apply_mirrors_lib.dart

Issue 2265533002: Add mirrors tests (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Created 4 years, 4 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: test/codegen/lib/mirrors/function_apply_mirrors_lib.dart
diff --git a/test/codegen/language/deferred_redirecting_factory_lib2.dart b/test/codegen/lib/mirrors/function_apply_mirrors_lib.dart
similarity index 60%
copy from test/codegen/language/deferred_redirecting_factory_lib2.dart
copy to test/codegen/lib/mirrors/function_apply_mirrors_lib.dart
index 62cbf143873010ef6252c0369b4135afcce6bfed..e94a55a1df329627010a6a01d147c2a8f7a69467 100644
--- a/test/codegen/language/deferred_redirecting_factory_lib2.dart
+++ b/test/codegen/lib/mirrors/function_apply_mirrors_lib.dart
@@ -2,10 +2,9 @@
// 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.
-library lib2;
+library function_apply_mirrors_lib;
-import "deferred_redirecting_factory_lib1.dart" as lib1;
+@MirrorsUsed(targets: "function_apply_mirrors_lib")
+import "dart:mirrors";
-class C extends lib1.C {
- String get foo => "lib2";
-}
+bar() => reflect(499).reflectee;
« no previous file with comments | « test/codegen/lib/mirrors/field_type_test.dart ('k') | test/codegen/lib/mirrors/function_apply_mirrors_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698