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

Unified Diff: test/codegen/lib/mirrors/metadata_allowed_values_import.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/metadata_allowed_values_import.dart
diff --git a/test/codegen/language/create_unresolved_type_test.dart b/test/codegen/lib/mirrors/metadata_allowed_values_import.dart
similarity index 70%
copy from test/codegen/language/create_unresolved_type_test.dart
copy to test/codegen/lib/mirrors/metadata_allowed_values_import.dart
index ceaf6dc421edb871d8741f36f23b83b50c23a897..67df4e21ab29a23c7cf0b83f32a8b6c8a6dea776 100644
--- a/test/codegen/language/create_unresolved_type_test.dart
+++ b/test/codegen/lib/mirrors/metadata_allowed_values_import.dart
@@ -2,6 +2,8 @@
// 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.
-main() {
- new F<int>(); /// 01: runtime error, static type warning
+class Imported {
+ const Imported();
+ const Imported.named();
+ static const CONSTANT = 0;
}
« no previous file with comments | « test/codegen/lib/mirrors/local_isolate_test.dart ('k') | test/codegen/lib/mirrors/metadata_allowed_values_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698