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

Unified Diff: tests/corelib_strong/const_list_set_range_test.dart

Issue 2683893002: Make corelib_strong tests strong-mode compliant (Closed)
Patch Set: Created 3 years, 10 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/corelib_strong/const_list_set_range_test.dart
diff --git a/tests/corelib_strong/const_list_set_range_test.dart b/tests/corelib_strong/const_list_set_range_test.dart
index 55238446b9819927bc10f6c1e727cb1bbf2552f8..5a7a755c946194f0bcd9d0e70220a19b6b7e4e12 100644
--- a/tests/corelib_strong/const_list_set_range_test.dart
+++ b/tests/corelib_strong/const_list_set_range_test.dart
@@ -10,7 +10,7 @@ main() {
testImmutable(const [1, 2]);
}
-void expectUOE(Function f) {
+void expectUOE(f()) {
Expect.throws(f, (e) => e is UnsupportedError);
}

Powered by Google App Engine
This is Rietveld 408576698