| Index: tests/compiler/dart2js_extra/inference_nsm_mirrors_test.dart
|
| diff --git a/tests/compiler/dart2js_extra/inference_nsm_mirrors_test.dart b/tests/compiler/dart2js_extra/inference_nsm_mirrors_test.dart
|
| index 8875dc08a57beeb475ae06d6c423c91b25d6de42..46a97378d0e71b06fd3ba324dd2d29d76a95178e 100644
|
| --- a/tests/compiler/dart2js_extra/inference_nsm_mirrors_test.dart
|
| +++ b/tests/compiler/dart2js_extra/inference_nsm_mirrors_test.dart
|
| @@ -22,5 +22,8 @@ class B {
|
|
|
| main() {
|
| Expect.equals(42, new B().foo(0));
|
| - Expect.throws(() => new A().foo('foo'), (e) => e is UnsupportedError);
|
| + // In checked mode we should get a type error. In unchecked mode it should be
|
| + // an argument error.
|
| + Expect.throws(() => new A().foo('foo'),
|
| + (e) => e is ArgumentError || e is TypeError);
|
| }
|
|
|