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 | |
7 class A { | 5 class A { |
8 static var a; | 6 static var a; |
9 static var b = c; | 7 static var b = c; |
10 static const var c = 499; | 8 static const var c = 499; |
11 static const var d = c; | 9 static const var d = c; |
12 static const var e = d; | 10 static const var e = d; |
13 static const var f = B.g; | 11 static const var f = B.g; |
14 static const var h = true; | 12 static const var h = true; |
15 static const var i = false; | 13 static const var i = false; |
16 static const var j = n; | 14 static const var j = n; |
(...skipping 30 matching lines...) Expand all Loading... |
47 A.b = 42; | 45 A.b = 42; |
48 Expect.equals(42, A.b); | 46 Expect.equals(42, A.b); |
49 Expect.equals(499, A.c); | 47 Expect.equals(499, A.c); |
50 Expect.equals(499, A.a); | 48 Expect.equals(499, A.a); |
51 } | 49 } |
52 | 50 |
53 main() { | 51 main() { |
54 testInitialValues(); | 52 testInitialValues(); |
55 testMutation(); | 53 testMutation(); |
56 } | 54 } |
OLD | NEW |