OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 var missingSetterField; | 8 var missingSetterField; |
7 var missingGetterField; | 9 var missingGetterField; |
8 var getterInSuperClassField; | 10 var getterInSuperClassField; |
9 var setterInSuperClassField; | 11 var setterInSuperClassField; |
10 var getterSetterField; | 12 var getterSetterField; |
11 var missingAllField; | 13 var missingAllField; |
12 var indexField = new List(2); | 14 var indexField = new List(2); |
13 | 15 |
14 set setterInSuperClass(a) { setterInSuperClassField = a; } | 16 set setterInSuperClass(a) { setterInSuperClassField = a; } |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 Expect.equals(3, super[0] += 1); | 96 Expect.equals(3, super[0] += 1); |
95 Expect.equals(3, super[0]); | 97 Expect.equals(3, super[0]); |
96 Expect.equals(3, super[0]++); | 98 Expect.equals(3, super[0]++); |
97 Expect.equals(4, super[0]); | 99 Expect.equals(4, super[0]); |
98 } | 100 } |
99 } | 101 } |
100 | 102 |
101 main() { | 103 main() { |
102 new C().test(); | 104 new C().test(); |
103 } | 105 } |
OLD | NEW |