| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 import "package:expect/expect.dart"; |
| 6 |
| 5 class A { | 7 class A { |
| 6 static var a; | 8 static var a; |
| 7 static var b = c; | 9 static var b = c; |
| 8 static const var c = 499; | 10 static const var c = 499; |
| 9 static const var d = c; | 11 static const var d = c; |
| 10 static const var e = d; | 12 static const var e = d; |
| 11 static const var f = B.g; | 13 static const var f = B.g; |
| 12 static const var h = true; | 14 static const var h = true; |
| 13 static const var i = false; | 15 static const var i = false; |
| 14 static const var j = n; | 16 static const var j = n; |
| (...skipping 30 matching lines...) Expand all Loading... |
| 45 A.b = 42; | 47 A.b = 42; |
| 46 Expect.equals(42, A.b); | 48 Expect.equals(42, A.b); |
| 47 Expect.equals(499, A.c); | 49 Expect.equals(499, A.c); |
| 48 Expect.equals(499, A.a); | 50 Expect.equals(499, A.a); |
| 49 } | 51 } |
| 50 | 52 |
| 51 main() { | 53 main() { |
| 52 testInitialValues(); | 54 testInitialValues(); |
| 53 testMutation(); | 55 testMutation(); |
| 54 } | 56 } |
| OLD | NEW |