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

Unified Diff: tests/lib/mirrors/metadata_constructed_constant_test.dart

Issue 24239010: Use symbol literals in the mirror tests. (Except for void, the empty string and setters.) (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 3 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: tests/lib/mirrors/metadata_constructed_constant_test.dart
diff --git a/tests/lib/mirrors/metadata_constructed_constant_test.dart b/tests/lib/mirrors/metadata_constructed_constant_test.dart
index df74ff18bbfbc8efbf317c27de7d8138e54f5139..0d5e01e709132d955da312a77b86958eb445995d 100644
--- a/tests/lib/mirrors/metadata_constructed_constant_test.dart
+++ b/tests/lib/mirrors/metadata_constructed_constant_test.dart
@@ -21,6 +21,6 @@ class Foo {
main() {
var value =
- reflectClass(Foo).methods[const Symbol("m")].metadata.single.reflectee;
+ reflectClass(Foo).methods[#m].metadata.single.reflectee;
Expect.stringEquals('ConstructedConstant($StateError)', '$value');
}

Powered by Google App Engine
This is Rietveld 408576698