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

Unified Diff: compiler/javatests/com/google/dart/compiler/resolver/ResolverTest.java

Issue 10911013: Enable warning for old catch syntax (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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
Index: compiler/javatests/com/google/dart/compiler/resolver/ResolverTest.java
===================================================================
--- compiler/javatests/com/google/dart/compiler/resolver/ResolverTest.java (revision 11616)
+++ compiler/javatests/com/google/dart/compiler/resolver/ResolverTest.java (working copy)
@@ -923,7 +923,7 @@
"class MyClass {",
" foo() {",
" try {",
- " } catch (Unknown e) {",
+ " } on Unknown catch (e) {",
" }",
" }",
"}"),
@@ -1154,7 +1154,7 @@
"main() {",
" try {",
" 0.25 - f;",
- " } catch(var e) {}",
+ " } catch(e) {}",
"}"),
ResolverErrorCode.CANNOT_USE_TYPE);
}

Powered by Google App Engine
This is Rietveld 408576698