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

Unified Diff: tests/language/inst_field_initializer1_negative_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/inst_field_initializer1_negative_test.dart
diff --git a/tests/language/inst_field_initializer1_negative_test.dart b/tests/language/inst_field_initializer1_negative_test.dart
index 1c56eb0fa8f98251115fbced235f6088ccaaa0af..44fcca13a110b64aaf788a5e9f9cffd311aec8ff 100644
--- a/tests/language/inst_field_initializer1_negative_test.dart
+++ b/tests/language/inst_field_initializer1_negative_test.dart
@@ -7,7 +7,7 @@
class A {
A() {}
int x = 5;
- int arr = new List.fixedLength(x); // Illegal access to 'this'.
+ int arr = new List(x); // Illegal access to 'this'.
// Also not a compile const expression.
}

Powered by Google App Engine
This is Rietveld 408576698