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

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

Issue 49083004: Re-triage mirror test failures on the analyzer. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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/immutable_collections_test.dart
diff --git a/tests/lib/mirrors/immutable_collections_test.dart b/tests/lib/mirrors/immutable_collections_test.dart
index 391fce449aad0e100c3126465a96ebf75e850a64..6a85e57dfd38411a6364e69eb0d3a7192899f5cf 100644
--- a/tests/lib/mirrors/immutable_collections_test.dart
+++ b/tests/lib/mirrors/immutable_collections_test.dart
@@ -10,9 +10,9 @@ import 'package:expect/expect.dart';
someException(e) => e is Exception || e is Error;
checkList(Iterable l, String reason) {
- Expect.throws(() => l[0] = 'value', someException, reason);
- Expect.throws(() => l.add('value'), someException, reason);
- Expect.throws(() => l.clear(), someException, reason);
+ Expect.throws(() => l[0] = 'value', someException, reason); /// static type warning
+ Expect.throws(() => l.add('value'), someException, reason); /// static type warning
+ Expect.throws(() => l.clear(), someException, reason); /// static type warning
}
checkMap(Map m, String reason) {

Powered by Google App Engine
This is Rietveld 408576698