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

Unified Diff: tests/language/default_interface1_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
« no previous file with comments | « tests/language/ct_const_test.dart ('k') | tests/language/div_by_zero_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/default_interface1_negative_test.dart
diff --git a/tests/language/default_interface1_negative_test.dart b/tests/language/default_interface1_negative_test.dart
index e644a1dabfb5875ba0a1a32f23e691c10a4b0d3f..cd06500537a9ac3eaf9be0468882a88a5d66b8b3 100644
--- a/tests/language/default_interface1_negative_test.dart
+++ b/tests/language/default_interface1_negative_test.dart
@@ -4,14 +4,14 @@
// VMOptions=--enable_type_checks
// An interface with a constructor declared must have a default clause
-interface IA {
+interface IA {
IA(); // Compile time error here
-}
+}
main() {
try {
IA value = new IA();
- } catch(Exception e) {
+ } on Exception catch (e) {
print ("Got exception" + e);
// compile-time error should not be catchable
}
« no previous file with comments | « tests/language/ct_const_test.dart ('k') | tests/language/div_by_zero_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698