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

Unified Diff: tests/language/getter_no_setter_test.dart

Issue 10891020: Update almost all tests (except co19) to use the new try-catch syntax. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Merge. 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 | « tests/language/getter_closure_execution_order_test.dart ('k') | tests/language/implied_interface_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/getter_no_setter_test.dart
diff --git a/tests/language/getter_no_setter_test.dart b/tests/language/getter_no_setter_test.dart
index 04298df7fe4bde792d85d0ec11fc6a9b5bb9fd2b..eb8075a0eea97a6cedbc4af513a135a26348edd2 100644
--- a/tests/language/getter_no_setter_test.dart
+++ b/tests/language/getter_no_setter_test.dart
@@ -11,7 +11,7 @@ class Example {
bool flag_exception = false;
try {
nextVar = 1; // Equivalent to this.nextVar = 1.
- } catch (var excpt) {
+ } catch (excpt) {
flag_exception = true;
}
Expect.isTrue(flag_exception);
@@ -20,7 +20,7 @@ class Example {
bool flag_exception = false;
try {
this.nextVar = 1; /// 00: static type warning
- } catch (var excpt) {
+ } catch (excpt) {
flag_exception = true;
}
Expect.isTrue(flag_exception); /// 00: continued
« no previous file with comments | « tests/language/getter_closure_execution_order_test.dart ('k') | tests/language/implied_interface_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698