Index: tests/language/bad_named_parameters2_test.dart |
diff --git a/tests/language/bad_named_parameters2_test.dart b/tests/language/bad_named_parameters2_test.dart |
index 45cf02c846aed773a46ab0a72e448ea0a85678c0..28617a367bb9337f545161b9923f4dff0ba6fa5e 100644 |
--- a/tests/language/bad_named_parameters2_test.dart |
+++ b/tests/language/bad_named_parameters2_test.dart |
@@ -21,7 +21,7 @@ class BadNamedParameters2Test { |
caught = false; |
// No formal parameter named b. |
np.foo(b:25); /// static type warning |
- } catch (NoSuchMethodException e) { |
+ } on NoSuchMethodException catch (e) { |
caught = true; |
} |
Expect.equals(true, caught); |