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"; | 5 import "package:expect/expect.dart"; |
6 | 6 |
7 class A { | 7 class A { |
8 int value; | 8 int value; |
9 A(this.value); | 9 A(this.value); |
10 void set(int value) { | 10 void set(int value) { |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 Expect.equals(box.value, b); | 174 Expect.equals(box.value, b); |
175 | 175 |
176 // New cascades are allowed inside an expressionWithoutCascade if properly | 176 // New cascades are allowed inside an expressionWithoutCascade if properly |
177 // delimited. | 177 // delimited. |
178 box | 178 box |
179 ..x = (a | 179 ..x = (a |
180 ..set(42) | 180 ..set(42) |
181 ..test(42)) | 181 ..test(42)) |
182 ..x.test(42); | 182 ..x.test(42); |
183 } | 183 } |
OLD | NEW |