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

Unified Diff: tests/language/type_variable_scope2_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
Index: tests/language/type_variable_scope2_test.dart
diff --git a/tests/language/type_variable_scope2_test.dart b/tests/language/type_variable_scope2_test.dart
index 72e4b0c946fbc7406fab7513ce77f0c4337c2027..1c039142f223ac7f69373bd785c14db3c23a51bb 100644
--- a/tests/language/type_variable_scope2_test.dart
+++ b/tests/language/type_variable_scope2_test.dart
@@ -9,7 +9,7 @@ isCheckedMode() {
var i = 1;
String s = i;
return false;
- } catch(var e) {
+ } catch (e) {
return true;
}
}
@@ -25,7 +25,7 @@ main() {
bool got_type_error = false;
try {
Expect.isTrue(Foo.m() is Foo);
- } catch (TypeError error) {
+ } on TypeError catch (error) {
got_type_error = true;
}
// Type error in checked mode only.
« no previous file with comments | « tests/language/type_variable_identifier_expression_negative_test.dart ('k') | tests/language/type_vm_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698