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

Unified Diff: tests/language/ct_const3_test.dart

Issue 10837359: Language tests updated to use const instead of final. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments Created 8 years, 4 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 | « tests/language/ct_const2_test.dart ('k') | tests/language/ct_const4_lib.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/ct_const3_test.dart
diff --git a/tests/language/ct_const3_test.dart b/tests/language/ct_const3_test.dart
index 2a7727c0a41db9cadb2ec38b1dfa6975642839b4..cc4c91d2b1c4c16342fdd78a45aa79910858cd0c 100644
--- a/tests/language/ct_const3_test.dart
+++ b/tests/language/ct_const3_test.dart
@@ -1,11 +1,11 @@
// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-// Check that initializers of final fields can be declared out of order.
+// Check that initializers of const fields can be declared out of order.
-final P = 2 * (O - N);
-final N = 1;
-final O = 1 + 3;
+const P = 2 * (O - N);
+const N = 1;
+const O = 1 + 3;
int main() {
Expect.equals(1, N);
« no previous file with comments | « tests/language/ct_const2_test.dart ('k') | tests/language/ct_const4_lib.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698