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

Unified Diff: tests/compiler/dart2js/type_combination_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/compiler/dart2js/type_checker_test.dart ('k') | tests/compiler/dart2js/type_guard_unuser_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/type_combination_test.dart
===================================================================
--- tests/compiler/dart2js/type_combination_test.dart (revision 11349)
+++ tests/compiler/dart2js/type_combination_test.dart (working copy)
@@ -9,29 +9,29 @@
final String str;
}
-final CONFLICTING = HType.CONFLICTING;
-final UNKNOWN = HType.UNKNOWN;
-final BOOLEAN = HType.BOOLEAN;
-final NUMBER = HType.NUMBER;
-final INTEGER = HType.INTEGER;
-final DOUBLE = HType.DOUBLE;
-final INDEXABLE_PRIMITIVE = HType.INDEXABLE_PRIMITIVE;
-final STRING = HType.STRING;
-final READABLE_ARRAY = HType.READABLE_ARRAY;
-final MUTABLE_ARRAY = HType.MUTABLE_ARRAY;
-final EXTENDABLE_ARRAY = HType.EXTENDABLE_ARRAY;
-final NON_PRIMITIVE1 = const HBoundedType.nonNull(const Type("type1"));
-final NON_PRIMITIVE2 = const HBoundedType.nonNull(const Type("type2"));
-final POTENTIAL_ARRAY =
+const CONFLICTING = HType.CONFLICTING;
+const UNKNOWN = HType.UNKNOWN;
+const BOOLEAN = HType.BOOLEAN;
+const NUMBER = HType.NUMBER;
+const INTEGER = HType.INTEGER;
+const DOUBLE = HType.DOUBLE;
+const INDEXABLE_PRIMITIVE = HType.INDEXABLE_PRIMITIVE;
+const STRING = HType.STRING;
+const READABLE_ARRAY = HType.READABLE_ARRAY;
+const MUTABLE_ARRAY = HType.MUTABLE_ARRAY;
+const EXTENDABLE_ARRAY = HType.EXTENDABLE_ARRAY;
+const NON_PRIMITIVE1 = const HBoundedType.nonNull(const Type("type1"));
+const NON_PRIMITIVE2 = const HBoundedType.nonNull(const Type("type2"));
+const POTENTIAL_ARRAY =
const HBoundedPotentialPrimitiveArray(const Type('type 3'), true);
-final POTENTIAL_STRING =
+const POTENTIAL_STRING =
const HBoundedPotentialPrimitiveString(const Type('type 4'), true);
-final BOOLEAN_OR_NULL = HType.BOOLEAN_OR_NULL;
-final NUMBER_OR_NULL = HType.NUMBER_OR_NULL;
-final INTEGER_OR_NULL = HType.INTEGER_OR_NULL;
-final DOUBLE_OR_NULL = HType.DOUBLE_OR_NULL;
-final STRING_OR_NULL = HType.STRING_OR_NULL;
-final NULL = HType.NULL;
+const BOOLEAN_OR_NULL = HType.BOOLEAN_OR_NULL;
+const NUMBER_OR_NULL = HType.NUMBER_OR_NULL;
+const INTEGER_OR_NULL = HType.INTEGER_OR_NULL;
+const DOUBLE_OR_NULL = HType.DOUBLE_OR_NULL;
+const STRING_OR_NULL = HType.STRING_OR_NULL;
+const NULL = HType.NULL;
void testUnion() {
Expect.equals(CONFLICTING, CONFLICTING.union(CONFLICTING));
« no previous file with comments | « tests/compiler/dart2js/type_checker_test.dart ('k') | tests/compiler/dart2js/type_guard_unuser_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698