| 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 |
| 6 class First { | 8 class First { |
| 7 First() {} | 9 First() {} |
| 8 var a; | 10 var a; |
| 9 var b; | 11 var b; |
| 10 | 12 |
| 11 addFields() { | 13 addFields() { |
| 12 return a + b; | 14 return a + b; |
| 13 } | 15 } |
| 14 | 16 |
| 15 setValues() { | 17 setValues() { |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 static testMain() { | 64 static testMain() { |
| 63 // FieldTest.one(); | 65 // FieldTest.one(); |
| 64 FieldTest.two(); | 66 FieldTest.two(); |
| 65 } | 67 } |
| 66 } | 68 } |
| 67 | 69 |
| 68 | 70 |
| 69 main() { | 71 main() { |
| 70 FieldTest.testMain(); | 72 FieldTest.testMain(); |
| 71 } | 73 } |
| OLD | NEW |