OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | |
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. | |
4 | |
5 main() { | |
6 try { | |
7 print('hello1'); | |
8 } catch (e, _) {} finally { | |
9 print('hello2'); | |
10 } | |
11 print('hello3'); | |
12 print(foo()); | |
13 print(bar()); | |
14 } | |
15 | |
16 int foo() { | |
17 try { | |
18 print('foo 1'); | |
19 return 1; | |
20 } catch (e, _) {} finally { | |
21 print('foo 2'); | |
22 return 2; | |
23 } | |
24 } | |
25 | |
26 int bar() { | |
27 try { | |
28 print('bar 1'); | |
29 return 1; | |
30 } catch (e, _) {} finally { | |
31 print('bar 2'); | |
32 } | |
33 return 0; | |
34 } | |
OLD | NEW |