| Index: tests/corelib/src/ConstListLiteralTest.dart
|
| diff --git a/tests/corelib/src/ConstListLiteralTest.dart b/tests/corelib/src/ConstListLiteralTest.dart
|
| index c7ba4419f27bf22ef3d3e0cf9100387bb8a902ea..fd52b665c3824be415aba178fcb6f0d1b811bfbe 100644
|
| --- a/tests/corelib/src/ConstListLiteralTest.dart
|
| +++ b/tests/corelib/src/ConstListLiteralTest.dart
|
| @@ -61,6 +61,14 @@ class ConstListLiteralTest {
|
| Expect.equals(4, list[0]);
|
| Expect.equals(2, list[1]);
|
| Expect.equals(3, list[2]);
|
| +
|
| + // Note: the next check is a regression test for frog. The immutable list
|
| + // overrides the 'length' property of List, but relies on using the native
|
| + // 'forEach' construct in Array. This test ensures that our strategy works
|
| + // correctly.
|
| + int x = 0;
|
| + list.forEach((e) { x += e; });
|
| + Expect.equals(9, x);
|
| }
|
| }
|
|
|
|
|