OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 // Regression test for http://dartbug.com/11637 | 5 // Regression test for http://dartbug.com/11637 |
6 | 6 |
7 class _C {} | 7 class _C {} |
| 8 |
8 class _E { | 9 class _E { |
9 throwIt() => throw "it"; | 10 throwIt() => throw "it"; |
10 } | 11 } |
| 12 |
11 class _F { | 13 class _F { |
12 throwIt() => throw "IT"; | 14 throwIt() => throw "IT"; |
13 } | 15 } |
| 16 |
14 class _D extends _C with _E, _F {} | 17 class _D extends _C with _E, _F {} |
15 | 18 |
16 main() { | 19 main() { |
17 var d = new _D(); | 20 var d = new _D(); |
18 try { | 21 try { |
19 d.throwIt(); | 22 d.throwIt(); |
20 } catch (e, s) { | 23 } catch (e, s) { |
21 print("Exception: $e"); | 24 print("Exception: $e"); |
22 print("Stacktrace:\n$s"); | 25 print("Stacktrace:\n$s"); |
23 } | 26 } |
24 } | 27 } |
OLD | NEW |