Index: compiler/javatests/com/google/dart/compiler/backend/js/testFieldAccessExprOpt.dart |
diff --git a/compiler/javatests/com/google/dart/compiler/backend/js/testFieldAccessExprOpt.dart b/compiler/javatests/com/google/dart/compiler/backend/js/testFieldAccessExprOpt.dart |
index 278ead8fc4e2c14c52cc80e9d203f347a3a27a67..c8ade50f25f3e0a789967eeca640b58b217f357f 100644 |
--- a/compiler/javatests/com/google/dart/compiler/backend/js/testFieldAccessExprOpt.dart |
+++ b/compiler/javatests/com/google/dart/compiler/backend/js/testFieldAccessExprOpt.dart |
@@ -5,9 +5,11 @@ |
class A { |
int x; |
+ const A() : this.x = 1; |
ngeoffray
2011/10/14 09:26:56
Why changing this file? I would keep it as is, and
zundel
2011/10/14 10:04:21
Part of this change is to enforce the initializati
ngeoffray
2011/10/14 10:33:42
I'm not sure I follow. This file looks like valid
floitsch
2011/10/14 14:36:58
Maybe because the "static final A a = new A() (bel
zundel
2011/10/14 20:59:52
It seems to me that if you add together all the pl
zundel
2011/10/14 20:59:52
Done.
|
+ |
static final A a = new A(); |
- A(){} |
+ |
} |
class WillNotOptimizeFieldAccess { |