Index: tests/corelib/list_first_test.dart |
diff --git a/tests/corelib/list_first_test.dart b/tests/corelib/list_first_test.dart |
index cdd718be90ee742f5e1a610a03ebca1a280e0129..c0795a45288a172e875fc7b9e648f73b560dffcd 100644 |
--- a/tests/corelib/list_first_test.dart |
+++ b/tests/corelib/list_first_test.dart |
@@ -4,7 +4,7 @@ |
void test(List list) { |
if (list.isEmpty) { |
- Expect.throws(() => list.first, (e) => e is RangeError); |
+ Expect.throws(() => list.first, (e) => e is StateError); |
} else { |
Expect.equals(list[0], list.first); |
} |