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

Unified Diff: tests/language/call_through_getter_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/assign_static_type_test.dart ('k') | tests/language/call_through_null_getter_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/call_through_getter_test.dart
diff --git a/tests/language/call_through_getter_test.dart b/tests/language/call_through_getter_test.dart
index 48e9c94ed9add1212e2c60e28852b40be131c98f..0200b584efb6a02abc220892be9bfd3ae54490e0 100644
--- a/tests/language/call_through_getter_test.dart
+++ b/tests/language/call_through_getter_test.dart
@@ -4,9 +4,9 @@
// Tests that we can call functions through getters.
-final TOP_LEVEL_CONST = 1;
-final TOP_LEVEL_CONST_REF = TOP_LEVEL_CONST;
-final TOP_LEVEL_NULL = null;
+const TOP_LEVEL_CONST = 1;
+const TOP_LEVEL_CONST_REF = TOP_LEVEL_CONST;
+const TOP_LEVEL_NULL = null;
var topLevel;
@@ -28,10 +28,10 @@ class CallThroughGetterTest {
Expect.equals(1, TOP_LEVEL_CONST_REF);
Expect.equals(2, topLevel());
- expectThrowsNotClosure(() {
+ expectThrowsNotClosure(() {
TOP_LEVEL_CONST(); /// static type warning
});
- expectThrowsNotClosure(() {
+ expectThrowsNotClosure(() {
(TOP_LEVEL_CONST)(); /// static type warning
});
}
« no previous file with comments | « tests/language/assign_static_type_test.dart ('k') | tests/language/call_through_null_getter_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698