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 | 4 |
| 5 import "package:expect/expect.dart"; |
| 6 |
5 // Test Parameter Intializer. | 7 // Test Parameter Intializer. |
6 | 8 |
7 | 9 |
8 class ParameterInitializer2Test { | 10 class ParameterInitializer2Test { |
9 static testMain() { | 11 static testMain() { |
10 var a = new A(123); | 12 var a = new A(123); |
11 Expect.equals(123, a.x); | 13 Expect.equals(123, a.x); |
12 | 14 |
13 var b = new B(123); | 15 var b = new B(123); |
14 Expect.equals(123, b.x); | 16 Expect.equals(123, b.x); |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 int y_; | 75 int y_; |
74 int w_; | 76 int w_; |
75 int z; | 77 int z; |
76 int az_; | 78 int az_; |
77 } | 79 } |
78 | 80 |
79 | 81 |
80 main() { | 82 main() { |
81 ParameterInitializer2Test.testMain(); | 83 ParameterInitializer2Test.testMain(); |
82 } | 84 } |
OLD | NEW |