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

Unified Diff: tests/language/fixed_length_test.dart

Issue 12328104: Change new List(n) to return fixed length list. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Merge to head. Created 7 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/language/fixed_length_test.dart
diff --git a/tests/language/fixed_length_test.dart b/tests/language/fixed_length_test.dart
index 27be71f5b362f8b7d3aad395567f059b40eaf37f..0e8ab562fcfe900043c78d3d0570f0a773109b6e 100644
--- a/tests/language/fixed_length_test.dart
+++ b/tests/language/fixed_length_test.dart
@@ -8,8 +8,8 @@ void main() {
Expect.equals(-1, foo());
}
-int foo() {
- var list = new List<int>.fixedLength(1024);
+int foo() {
+ var list = new List<int>(1024);
for(int i = 0; i < list.length; i++) list[i] = -i;

Powered by Google App Engine
This is Rietveld 408576698