Index: tests/language/cascade_2_test.dart |
diff --git a/tests/language/cascade_2_test.dart b/tests/language/cascade_2_test.dart |
index 4e5cdbc14ca47b569333417b9e4dd377b71e8805..1742f48f0fc5d95fc2a88a81225238b2adff2470 100644 |
--- a/tests/language/cascade_2_test.dart |
+++ b/tests/language/cascade_2_test.dart |
@@ -16,7 +16,7 @@ main() { |
Expect.equals(a, a.path1[0]); |
Expect.equals(a, a.path1[1]); |
- Expect.equals(1, a.path2.length); // NPE. |
+ Expect.equals(1, a.path2.length); // NPE. |
var b = new Element(a); |
Expect.equals(2, b.path0.length); |
@@ -28,10 +28,9 @@ main() { |
Expect.equals(a, b.path1[1]); |
Expect.equals(b, b.path1[2]); |
- Expect.equals(2, b.path2.length); // NPE. |
+ Expect.equals(2, b.path2.length); // NPE. |
} |
- |
class Element { |
final Element parent; |
@@ -46,7 +45,8 @@ class Element { |
} |
List<Element> get path1 { |
- return (parent == null) ? <Element>[this] : parent.path1..add(this); |
+ return (parent == null) ? <Element>[this] : parent.path1 |
+ ..add(this); |
} |
List<Element> get path2 { |