| 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 instance fields. | 4 // Dart test program for testing setting/getting of instance fields. |
| 5 | 5 |
| 6 import "package:expect/expect.dart"; | |
| 7 | |
| 8 class First { | 6 class First { |
| 9 First() {} | 7 First() {} |
| 10 var a; | 8 var a; |
| 11 var b; | 9 var b; |
| 12 | 10 |
| 13 addFields() { | 11 addFields() { |
| 14 return a + b; | 12 return a + b; |
| 15 } | 13 } |
| 16 | 14 |
| 17 setValues() { | 15 setValues() { |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 static testMain() { | 62 static testMain() { |
| 65 // FieldTest.one(); | 63 // FieldTest.one(); |
| 66 FieldTest.two(); | 64 FieldTest.two(); |
| 67 } | 65 } |
| 68 } | 66 } |
| 69 | 67 |
| 70 | 68 |
| 71 main() { | 69 main() { |
| 72 FieldTest.testMain(); | 70 FieldTest.testMain(); |
| 73 } | 71 } |
| OLD | NEW |