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

Unified Diff: tests/language/static_field_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/script_source.dart ('k') | tests/language/static_top_level_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/static_field_test.dart
diff --git a/tests/language/static_field_test.dart b/tests/language/static_field_test.dart
index 675c9e8a97a40986d3dd20b5edc5b1a6203e095e..b7018fab505d4d708d2ecca9dabdbb36c6d4d441 100644
--- a/tests/language/static_field_test.dart
+++ b/tests/language/static_field_test.dart
@@ -7,7 +7,7 @@ class First {
First() {}
static var a;
static var b;
- static final int c = 1;
+ static const int c = 1;
static setValues() {
a = 24;
b = 10;
@@ -68,7 +68,7 @@ class StaticField1RunNegativeTest {
testMain() {
var foo = new StaticField1RunNegativeTest();
print(x); // Used to compile 'x' and force any errors.
- var result = foo.x;
+ var result = foo.x;
}
}
@@ -96,7 +96,7 @@ class StaticField2RunNegativeTest {
class StaticField2aRunNegativeTest {
static /// 04: static type warning, runtime error
- void m() {}
+ void m() {}
testMain() {
var foo = new StaticField2aRunNegativeTest();
« no previous file with comments | « tests/language/script_source.dart ('k') | tests/language/static_top_level_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698