| Index: tests/language/try_catch_syntax_test.dart
|
| diff --git a/tests/language/try_catch_syntax_test.dart b/tests/language/try_catch_syntax_test.dart
|
| index 03dc9d93d16f9e30016c19af9cdf7ce26d476056..1e712c23400a1226ed3196f30269123df6764320 100644
|
| --- a/tests/language/try_catch_syntax_test.dart
|
| +++ b/tests/language/try_catch_syntax_test.dart
|
| @@ -31,10 +31,17 @@ testIllegalFinally() {
|
|
|
| testIllegalCatch() {
|
| try { } catch () { } /// 07: compile-time error
|
| - try { } on MammaMia catch (e) { } /// 09: compile-time error
|
| + try { } on MammaMia catch (e) { } /// 08: compile-time error
|
| + try { } catch (var e) { } /// 09: compile-time error
|
| + try { } catch (final e) { } /// 10: compile-time error
|
| + try { } catch (int e) { } /// 11: compile-time error
|
| + try { } catch (final int e) { } /// 12: compile-time error
|
| + try { } catch ([e, s]) { } /// 13: compile-time error
|
| + try { } catch (e, [s]) { } /// 14: compile-time error
|
| + try { } catch (e, [s0, s1]) { } /// 15: compile-time error
|
| }
|
|
|
| testIllegalRethrow() {
|
| - try { throw; } catch (e) { } /// 10: compile-time error
|
| - try { } catch (e) { } finally { throw; } /// 11: compile-time error
|
| + try { throw; } catch (e) { } /// 16: compile-time error
|
| + try { } catch (e) { } finally { throw; } /// 17: compile-time error
|
| }
|
|
|