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

Unified Diff: tests/language/f_bounded_quantification_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/external_test.dart ('k') | tests/language/function_malformed_result_type_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/f_bounded_quantification_test.dart
diff --git a/tests/language/f_bounded_quantification_test.dart b/tests/language/f_bounded_quantification_test.dart
index f4b98078b401fa0bcf8aa588044b0104ca222e60..928b71eea5575fa9ece00d44d1648646514e2751 100644
--- a/tests/language/f_bounded_quantification_test.dart
+++ b/tests/language/f_bounded_quantification_test.dart
@@ -20,7 +20,7 @@ isCheckedMode() {
var i = 1;
String s = i;
return false;
- } catch(var e) {
+ } catch (e) {
return true;
}
}
@@ -31,7 +31,7 @@ main() {
bool got_type_error = false;
try {
FBound<SubBar> fsb = new FBound<SubBar>(); /// 01: static type warning
- } catch (TypeError error) {
+ } on TypeError catch (error) {
got_type_error = true;
}
// Type error in checked mode only.
@@ -42,7 +42,7 @@ main() {
bool got_type_error = false;
try {
FBound<SubBaz<Bar>> fsb = new FBound<SubBaz<Bar>>(); /// 02: static type warning
- } catch (TypeError error) {
+ } on TypeError catch (error) {
got_type_error = true;
}
// Type error in checked mode only.
« no previous file with comments | « tests/language/external_test.dart ('k') | tests/language/function_malformed_result_type_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698