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

Unified Diff: tests/language/inst_field_initializer_test.dart

Issue 10871071: - Change "static final" to "static const" in the tests/ directory. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: 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/function_test.dart ('k') | tests/language/map_literal_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/inst_field_initializer_test.dart
===================================================================
--- tests/language/inst_field_initializer_test.dart (revision 11349)
+++ tests/language/inst_field_initializer_test.dart (working copy)
@@ -4,8 +4,8 @@
// Test for instance field initializer expressions.
class Cheese {
- static final mild = 1;
- static final stinky = 2;
+ static const mild = 1;
+ static const stinky = 2;
// Instance fields with initializer expression.
String name = "";
@@ -25,7 +25,7 @@
Cheese.initFieldParam(this.name, this.smell) {
}
- // Test that static final field Cheese.mild is not shadowed
+ // Test that static const field Cheese.mild is not shadowed
// by the parameter mild when compiling the field initializer
// for instance field smell.
Cheese.hideAndSeek(var mild) : name = mild {
« no previous file with comments | « tests/language/function_test.dart ('k') | tests/language/map_literal_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698