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

Unified Diff: runtime/vm/parser.cc

Issue 33813003: Do not generate a compile-time error if there is more than one catch-all clause (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 2 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 | « no previous file | tests/language/language.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/parser.cc
===================================================================
--- runtime/vm/parser.cc (revision 28964)
+++ runtime/vm/parser.cc (working copy)
@@ -6713,13 +6713,6 @@
ExpectToken(Token::kRPAREN);
}
- // If a generic "catch all" statement has already been seen then all
- // subsequent catch statements are dead. We issue an error for now,
- // it might make sense to turn this into a warning.
- if (generic_catch_seen) {
- ErrorMsg("a generic 'catch all' statement already exists for this "
- "try block. All subsequent catch statements are dead code");
- }
OpenBlock();
AddCatchParamsToScope(exception_param,
stack_trace_param,
« no previous file with comments | « no previous file | tests/language/language.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698