Index: tests/language_strong/try_catch_on_syntax_test.dart |
diff --git a/tests/language_strong/try_catch_on_syntax_test.dart b/tests/language_strong/try_catch_on_syntax_test.dart |
index 03672caf63d277467414032b0959178228bb33b8..33335dad006eed4b2a1fb0c4200efa8f5c349944 100644 |
--- a/tests/language_strong/try_catch_on_syntax_test.dart |
+++ b/tests/language_strong/try_catch_on_syntax_test.dart |
@@ -4,11 +4,11 @@ |
import "package:expect/expect.dart"; |
-class MyException {} |
+class MyException { } |
-class MyException1 extends MyException {} |
+class MyException1 extends MyException { } |
-class MyException2 extends MyException {} |
+class MyException2 extends MyException { } |
void test1() { |
var foo = 0; |
@@ -28,20 +28,18 @@ void test1() { |
foo = 3; |
} |
on UndefinedClass //# 07: static type warning |
- catch (e) { |
- foo = 4; |
- } |
+ catch(e) { foo = 4; } |
Expect.equals(2, foo); |
} |
testFinal() { |
try { |
throw "catch this!"; |
- } catch (e, s) { |
- // Test that the error and stack trace variables are final. |
+ } catch (e, s) { |
+ // Test that the error and stack trace variables are final. |
e = null; // //# 10: runtime error |
s = null; // //# 11: runtime error |
- } |
+ } |
} |
main() { |