OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 class A { | 5 class A { |
6 final x = 4; | 6 final x = 4; |
7 const A(this.x); | 7 const A(this.x); |
8 const A.redirect(x) : this(x + 1); | 8 const A.redirect(x) : this(x + 1); |
9 const A.optional([this.x = 5]); | 9 const A.optional([this.x = 5]); |
10 } | 10 } |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 Expect.equals(null, c6.y); | 96 Expect.equals(null, c6.y); |
97 Expect.equals(null, c6.z); | 97 Expect.equals(null, c6.z); |
98 Expect.equals(null, c7.x); | 98 Expect.equals(null, c7.x); |
99 Expect.equals(null, c7.y); | 99 Expect.equals(null, c7.y); |
100 Expect.equals(null, c7.z); | 100 Expect.equals(null, c7.z); |
101 Expect.equals(null, c8.x); | 101 Expect.equals(null, c8.x); |
102 Expect.equals(null, c8.y); | 102 Expect.equals(null, c8.y); |
103 Expect.equals(9911, c8.z); | 103 Expect.equals(9911, c8.z); |
104 Expect.identical(c3, c3b); | 104 Expect.identical(c3, c3b); |
105 } | 105 } |
OLD | NEW |