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

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

Issue 24202002: Fix warnings spotted by analyzer. (Closed) Base URL: http://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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/lib/mirrors/redirecting_factory_test.dart
===================================================================
--- tests/lib/mirrors/redirecting_factory_test.dart (revision 27561)
+++ tests/lib/mirrors/redirecting_factory_test.dart (working copy)
@@ -42,7 +42,9 @@
Class<String, int>.factoryNoOptional;
factory Class.redirectingFactoryStringTypeParameters(a, b) =
- Class<String>.factoryNoOptional;
+ Class
+ <String> /// 02: static type warning
+ .factoryNoOptional;
factory Class.redirectingFactoryTypeParameters(a, b) =
Class<T1, T2>.factoryNoOptional;
@@ -106,7 +108,7 @@
new Map()..[const Symbol('b')] = 1);
Expect.equals(40, instanceMirror.reflectee.field);
- classMirror = reflect(new Class<String, int>()).type;
+ classMirror = reflect(new Class<String, int>(42)).type;
instanceMirror = classMirror.newInstance(
const Symbol('redirectingFactoryTypeParameters'), [43, 1]);
Expect.equals(42, instanceMirror.reflectee.field);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698