OLD | NEW |
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 import "package:expect/expect.dart"; | |
6 | |
7 class MyException { } | 5 class MyException { } |
8 | 6 |
9 class MyException1 extends MyException { } | 7 class MyException1 extends MyException { } |
10 | 8 |
11 class MyException2 extends MyException { } | 9 class MyException2 extends MyException { } |
12 | 10 |
13 class TryCatchTest { | 11 class TryCatchTest { |
14 static void test1() { | 12 static void test1() { |
15 var foo = 0; | 13 var foo = 0; |
16 try { | 14 try { |
(...skipping 18 matching lines...) Expand all Loading... |
35 } | 33 } |
36 | 34 |
37 static void testMain() { | 35 static void testMain() { |
38 test1(); | 36 test1(); |
39 } | 37 } |
40 } | 38 } |
41 | 39 |
42 main() { | 40 main() { |
43 TryCatchTest.testMain(); | 41 TryCatchTest.testMain(); |
44 } | 42 } |
OLD | NEW |