| Index: tests/language/switch_try_catch_test.dart
|
| diff --git a/tests/language/switch_try_catch_test.dart b/tests/language/switch_try_catch_test.dart
|
| index d362a145d71da493eff7d9583b42a471251bef02..beee717cafee0e1ad3c849d9cd5ec39a0ce02472 100644
|
| --- a/tests/language/switch_try_catch_test.dart
|
| +++ b/tests/language/switch_try_catch_test.dart
|
| @@ -5,26 +5,29 @@
|
| // Regression test for issue 18869: Check that try-catch is working correctly
|
| // inside switch-case clauses.
|
|
|
| -
|
| import "package:expect/expect.dart";
|
|
|
| test_switch() {
|
| - switch(0) {
|
| - _0: case 0:
|
| + switch (0) {
|
| + _0:
|
| + case 0:
|
| print("_0");
|
| continue _5;
|
| - _1: case 1:
|
| + _1:
|
| + case 1:
|
| try {
|
| print("bunny");
|
| continue _6;
|
| - } catch(e) { }
|
| + } catch (e) {}
|
| break;
|
| - _5: case 5:
|
| + _5:
|
| + case 5:
|
| print("_5");
|
| continue _6;
|
| - _6: case 6:
|
| + _6:
|
| + case 6:
|
| print("_6");
|
| - throw 555;
|
| + throw 555;
|
| }
|
| }
|
|
|
|
|