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

Unified Diff: tests/language/try_catch_on_syntax_test.dart

Issue 19097003: Support new malformed types semantics. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix unittests. Created 7 years, 5 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/prefix9_test.dart ('k') | tests/language/try_catch_syntax_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/try_catch_on_syntax_test.dart
diff --git a/tests/language/try_catch_on_syntax_test.dart b/tests/language/try_catch_on_syntax_test.dart
index cf79fdd7224c14976072eb84b0122421cfd5e89e..1b5e4a56e1f40791f68f6c6121175788c984f264 100644
--- a/tests/language/try_catch_on_syntax_test.dart
+++ b/tests/language/try_catch_on_syntax_test.dart
@@ -16,7 +16,6 @@ class TryCatchTest {
try {
throw new MyException1();
}
- on MyException3 catch (e) { } /// 01: compile-time error
on on MyException2 catch (e) { } /// 02: compile-time error
catch MyException2 catch (e) { } /// 03: compile-time error
catch catch catch (e) { } /// 04: compile-time error
@@ -29,7 +28,7 @@ class TryCatchTest {
} on MyException catch (e) {
foo = 3;
}
- on UndefinedClass /// 07: compile-time error
+ on UndefinedClass /// 07: static type warning
catch(e) { foo = 4; }
Expect.equals(2, foo);
}
« no previous file with comments | « tests/language/prefix9_test.dart ('k') | tests/language/try_catch_syntax_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698