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: tests/language/type_variable_identifier_expression_negative_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_identifier_expression_negative_test.dart
diff --git a/tests/language/type_variable_identifier_expression_negative_test.dart b/tests/language/type_variable_identifier_expression_negative_test.dart
index df88b70e1e7303aa9746295d18277c0045935453..427291c311a994d99e0692c35c7ca895a7f8d01a 100644
--- a/tests/language/type_variable_identifier_expression_negative_test.dart
+++ b/tests/language/type_variable_identifier_expression_negative_test.dart
@@ -10,7 +10,7 @@ class A {
}
class B<T> {
- doFunc() {
+ doFunc() {
T.func(); // illegal to use type variable as an identifier expression
}
}
@@ -19,7 +19,7 @@ main() {
try {
var buf = new B<A>().doFunc();
print(buf);
- } catch (Exception e) {
+ } on Exception catch (e) {
// should be an uncatchable compile-time error,
}
}
« no previous file with comments | « tests/language/type_checks_in_factory_method_test.dart ('k') | tests/language/type_variable_scope2_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698