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

Unified Diff: tests/corelib/src/SortHelper.dart

Issue 8534001: Adds typechecking of return values (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: better runtime checks Created 9 years, 1 month 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/src/SortHelper.dart
diff --git a/tests/corelib/src/SortHelper.dart b/tests/corelib/src/SortHelper.dart
index 59314b93ab62251acf282a701efeee61485675cf..4efa33bbc1bedb346f00d44b56807ca2aaf5e66b 100644
--- a/tests/corelib/src/SortHelper.dart
+++ b/tests/corelib/src/SortHelper.dart
@@ -20,7 +20,7 @@ class SortHelper {
print("[$buffer]");
}
- void isSorted(List a) {
+ bool isSorted(List a) {
for (int i = 1; i < a.length; i++) {
if (compareFunction(a[i - 1], a[i]) > 0) {
return false;

Powered by Google App Engine
This is Rietveld 408576698