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

Unified Diff: test/codegen/lib/mirrors/library_with_annotated_declaration.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/library_with_annotated_declaration.dart
diff --git a/test/codegen/language/constructor_name_clash_lib.dart b/test/codegen/lib/mirrors/library_with_annotated_declaration.dart
similarity index 62%
copy from test/codegen/language/constructor_name_clash_lib.dart
copy to test/codegen/lib/mirrors/library_with_annotated_declaration.dart
index 46ea6c0b3c621fcd1827750c10de66980b5b3057..eeff40d1df7840971fc77fe189c52c493f0abfba 100644
--- a/test/codegen/language/constructor_name_clash_lib.dart
+++ b/test/codegen/lib/mirrors/library_with_annotated_declaration.dart
@@ -2,13 +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 lib;
+@metadata
+library library_with_annotated_declaration;
-var global = 0;
+const metadata = 'metadata';
-class A {
- A() {
- global += 10;
- try {} catch(e) {} // no inline
- }
-}
+class ClassInLibraryWithAnnotatedDeclaration {}
« no previous file with comments | « test/codegen/lib/mirrors/library_uri_package_test.dart ('k') | test/codegen/lib/mirrors/library_without_declaration.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698