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

Unified Diff: compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerTest.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
« no previous file with comments | « compiler/javatests/com/google/dart/compiler/resolver/ResolverTest.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerTest.java
===================================================================
--- compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerTest.java (revision 11616)
+++ compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerTest.java (working copy)
@@ -1094,12 +1094,12 @@
}
public void testTryCatchFinally() {
- analyze("try { } catch (var _) { } finally { }");
- analyzeFail("try { int i = 4.2; } catch (var _) { } finally { }",
+ analyze("try { } catch (_) { } finally { }");
+ analyzeFail("try { int i = 4.2; } catch (_) { } finally { }",
TypeErrorCode.TYPE_NOT_ASSIGNMENT_COMPATIBLE);
- analyzeFail("try { } catch (var _) { int i = 4.2; } finally { }",
+ analyzeFail("try { } catch (_) { int i = 4.2; } finally { }",
TypeErrorCode.TYPE_NOT_ASSIGNMENT_COMPATIBLE);
- analyzeFail("try { } catch (var _) { } finally { int i = 4.2; }",
+ analyzeFail("try { } catch (_) { } finally { int i = 4.2; }",
TypeErrorCode.TYPE_NOT_ASSIGNMENT_COMPATIBLE);
}
« no previous file with comments | « compiler/javatests/com/google/dart/compiler/resolver/ResolverTest.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698