Index: tests/language/string_interpolate_npe_test.dart |
diff --git a/tests/language/string_interpolate_npe_test.dart b/tests/language/string_interpolate_npe_test.dart |
index 4ed439488df0019b0c64843856b1253596a5f5e2..0baa32a9a43b4cb430fd75420e010297765c02e3 100644 |
--- a/tests/language/string_interpolate_npe_test.dart |
+++ b/tests/language/string_interpolate_npe_test.dart |
@@ -15,7 +15,7 @@ main() { |
a = null; |
try { |
s = "Hello Mr. ${a.name}"; |
- } catch (NullPointerException e) { |
+ } on NullPointerException catch (e) { |
return; |
} |
Expect.fail("NullPointerException not thrown"); |