| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 // Dart test program for testing setting/getting of fields when | 4 // Dart test program for testing setting/getting of fields when |
| 5 // only getter/setter methods are specified. | 5 // only getter/setter methods are specified. |
| 6 | 6 |
| 7 class First { | 7 class First { |
| 8 First(int val) : a_ = val { } | 8 First(int val) : a_ = val { } |
| 9 int a_; | 9 int a_; |
| 10 } | 10 } |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 Second.testStaticMethod(); | 46 Second.testStaticMethod(); |
| 47 Expect.equals(20, Second.c); | 47 Expect.equals(20, Second.c); |
| 48 Expect.equals(20, Second.static_d); | 48 Expect.equals(20, Second.static_d); |
| 49 } | 49 } |
| 50 } | 50 } |
| 51 | 51 |
| 52 | 52 |
| 53 main() { | 53 main() { |
| 54 Setter0Test.testMain(); | 54 Setter0Test.testMain(); |
| 55 } | 55 } |
| OLD | NEW |