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

Unified Diff: tests/language/src/ConstInitTest.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: tests/language/src/ConstInitTest.dart
diff --git a/tests/language/src/ConstInitTest.dart b/tests/language/src/ConstInitTest.dart
index 9c64e69ee11f4ab6cdc68d559e7f0eb898e5f8e0..3a53c76618d9eb359db3bb9df8be602fe41a9f3b 100644
--- a/tests/language/src/ConstInitTest.dart
+++ b/tests/language/src/ConstInitTest.dart
@@ -42,6 +42,8 @@ class ConstInitTest {
class C2 {
static final Q = const Point(0, 0);
+ // TODO(zundel): Was it intentional to forward reference O, N?
ngeoffray 2011/10/17 10:59:38 Does it matter?
zundel 2011/10/17 14:14:26 As per Florian's request, moved to a separate test
+ // Compiler doesn't recognize the type of O, N as int in that case.
ngeoffray 2011/10/17 10:59:38 Maybe file a bug to fix that in dartc?
zundel 2011/10/17 14:14:26 Codesite issue 120
static final P = 2 * (O - N);
static final O = 1 + 3;
static final N = 1;

Powered by Google App Engine
This is Rietveld 408576698