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

Unified Diff: tests/language/assign_static_type_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
Index: tests/language/assign_static_type_test.dart
diff --git a/tests/language/assign_static_type_test.dart b/tests/language/assign_static_type_test.dart
index 190973ae6c47e695dd63e628413dfd59ae45af0a..0d1c30785a81bbb7f7c1ca71f0bddc1b266fb06e 100644
--- a/tests/language/assign_static_type_test.dart
+++ b/tests/language/assign_static_type_test.dart
@@ -1,6 +1,6 @@
-// Copyright (c) 2012, 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.
+// Copyright (c) 2012, 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.
// This test insures that statically initialized variables, fields, and parameters
// report static type warnings.
@@ -8,7 +8,7 @@
int a = "String"; /// 01: static type warning, dynamic type error
class A {
- static final int c = "String"; /// 02: static type warning, dynamic type error
+ static const int c = "String"; /// 02: static type warning, dynamic type error
final int d = "String"; /// 03: static type warning, dynamic type error
int e = "String"; /// 04: static type warning, dynamic type error
A() {
« no previous file with comments | « tests/language/adjacent_const_string_literals_test.dart ('k') | tests/language/call_through_getter_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698