Index: tests/language/closure3_test.dart |
diff --git a/tests/language/closure3_test.dart b/tests/language/closure3_test.dart |
index 3597eb6a38302ff4b3b6a6eb879f740b65f8222e..812322877bf86de2122fa8be1768e98125dbeb66 100644 |
--- a/tests/language/closure3_test.dart |
+++ b/tests/language/closure3_test.dart |
@@ -13,7 +13,7 @@ main() { |
try { |
test(null, 2); |
Expect.fail('Expected NullPointerException'); |
- } catch (NullPointerException ex) { |
+ } on NullPointerException catch (ex) { |
return; |
} |
Expect.fail('Expected NullPointerException'); |