Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(648)

Unified Diff: tests/language/try_catch_syntax_test.dart

Issue 22557002: Fix uses of throw/rethrow. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/language/language_analyzer2.status ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 68b8aec0d3c1d78d56d9a42c9198dc37a843e935..b153d843980b8c7c6c8de237f3b73b33e72e1b03 100644
--- a/tests/language/try_catch_syntax_test.dart
+++ b/tests/language/try_catch_syntax_test.dart
@@ -42,6 +42,6 @@ testIllegalCatch() {
}
testIllegalRethrow() {
- try { throw; } catch (e) { } /// 16: compile-time error
- try { } catch (e) { } finally { throw; } /// 17: compile-time error
+ try { rethrow; } catch (e) { } /// 16: compile-time error
+ try { } catch (e) { } finally { rethrow; } /// 17: compile-time error
}
« no previous file with comments | « tests/language/language_analyzer2.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698