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

Unified Diff: samples/clock/Balls.dart

Issue 8231031: Check for compile-time constants in DartCompiler (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Feedback from floitsch Created 9 years, 2 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: samples/clock/Balls.dart
diff --git a/samples/clock/Balls.dart b/samples/clock/Balls.dart
index 39842726f6d2cbcfec750717fecec1a7243046fa..903b8f4996c526a1b2875faa630f12b6ee08e6e9 100644
--- a/samples/clock/Balls.dart
+++ b/samples/clock/Balls.dart
@@ -6,7 +6,7 @@ class Balls {
static final double RADIUS2 = Ball.RADIUS * Ball.RADIUS;
// TODO: "static const Array<String> PNGS" doesn't parse
- static final List<String> PNGS = ["images/ball-d9d9d9.png",
+ static final List<String> PNGS = const ["images/ball-d9d9d9.png",
"images/ball-009a49.png", "images/ball-13acfa.png",
"images/ball-265897.png", "images/ball-b6b4b5.png",
"images/ball-c0000b.png", "images/ball-c9c9c9.png"];

Powered by Google App Engine
This is Rietveld 408576698