| Index: tests/language/savannah_test.dart
|
| diff --git a/tests/language/savannah_test.dart b/tests/language/savannah_test.dart
|
| index 9c0069799e0b1475dda13f07184d633f9c64a362..b55926e5860881a1df5be9fb5a4fe4dcd07488d7 100644
|
| --- a/tests/language/savannah_test.dart
|
| +++ b/tests/language/savannah_test.dart
|
| @@ -56,7 +56,7 @@ class SavannahTest {
|
| try {
|
| savannah[zebra1] = zebra1.name;
|
| savannah[zebra2] = zebra2.name;
|
| - } catch (NoSuchMethodException e) {
|
| + } on NoSuchMethodException catch (e) {
|
| print("Caught: $e");
|
| caught = true;
|
| }
|
| @@ -70,7 +70,7 @@ class SavannahTest {
|
| try {
|
| print("zebra1: ${savannah[zebra1]}");
|
| print("zebra2: ${savannah[zebra2]}");
|
| - } catch (NoSuchMethodException e) {
|
| + } on NoSuchMethodException catch (e) {
|
| print("Caught: $e");
|
| caught = true;
|
| }
|
|
|