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

Unified Diff: lib/compiler/implementation/resolver.dart

Issue 10915163: Fix 5024 - diagnostic on unresolved catch types, added test case (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixed test. Created 8 years, 3 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/try_catch_on_syntax_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/resolver.dart
diff --git a/lib/compiler/implementation/resolver.dart b/lib/compiler/implementation/resolver.dart
index 166b55204697de309d707b38821740336f1f8ef6..9bec4367defffc025f59fb2bb033cacec06e826a 100644
--- a/lib/compiler/implementation/resolver.dart
+++ b/lib/compiler/implementation/resolver.dart
@@ -1936,7 +1936,10 @@ class ResolverVisitor extends CommonResolverVisitor<Element> {
}
Scope blockScope = new BlockScope(scope);
+ var wasTypeRequired = typeRequired;
+ typeRequired = true;
doInCheckContext(() => visitIn(node.type, blockScope));
+ typeRequired = wasTypeRequired;
visitIn(node.formals, blockScope);
visitIn(node.block, blockScope);
}
« no previous file with comments | « no previous file | tests/language/try_catch_on_syntax_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698