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

Unified Diff: tests/language/deferred_constraints_constants_test.dart

Issue 219473007: Deferred prefix support in metadata (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 9 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
« no previous file with comments | « runtime/vm/parser.cc ('k') | tests/language/language.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/deferred_constraints_constants_test.dart
===================================================================
--- tests/language/deferred_constraints_constants_test.dart (revision 34600)
+++ tests/language/deferred_constraints_constants_test.dart (working copy)
@@ -4,6 +4,7 @@
import 'package:expect/expect.dart';
import 'package:async_helper/async_helper.dart';
+import 'dart:mirrors';
import "deferred_constraints_constants_lib.dart" deferred as lib;
@@ -54,6 +55,12 @@
var h1 = new H1();
var h2 = new H2();
var h3 = new H3();
+
+ // Need to access the metadata to trigger the expected compilation error.
+ reflectClass(H1).metadata; // metadata1: continued
+ reflectClass(H2).metadata; // metadata2: continued
+ reflectClass(H3).metadata; // metadata3: continued
+
asyncEnd();
});
}
« no previous file with comments | « runtime/vm/parser.cc ('k') | tests/language/language.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698