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

Unified Diff: tests/standalone/array_bounds_check_generalization_test.dart

Issue 631143003: Silence analyzer warnings in array_bounds_check_generalization_test. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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
« 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/standalone/array_bounds_check_generalization_test.dart
diff --git a/tests/standalone/array_bounds_check_generalization_test.dart b/tests/standalone/array_bounds_check_generalization_test.dart
index f102e8f785fc8efe5e48db73061702e1734b2e9e..bfd0cceb070b2bc2e70700c9640b0fdc488821e7 100644
--- a/tests/standalone/array_bounds_check_generalization_test.dart
+++ b/tests/standalone/array_bounds_check_generalization_test.dart
@@ -33,7 +33,7 @@ test3(a, b) {
test4(a, b) {
var e;
if (a.length < 2) {
- return;
+ return null;
}
for (var i = 0, j = 1, k = 0; i < a.length - 1; i++, j++, k++) {
@@ -45,11 +45,11 @@ test4(a, b) {
test5(a, b, k0) {
var e;
if (a.length < 2) {
- return;
+ return null;
}
if (k0 > 1) {
- return;
+ return null;
}
for (var i = 0, j = 1, k = 0; i < a.length - 1; i++, j++, k++) {
« 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