OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2012, 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 // Test cyclic export and re-export. |
| 6 |
| 7 /** |
| 8 * export_cyclic_test re-exports export_cyclic_helper1 which declares B |
| 9 * export_cyclic_helper1 re-exports export_cyclic_helper2 which declares C |
| 10 * export_cyclic_helper2 re-exports export_cyclic_test which declares A |
| 11 * export_cyclic_helper2 re-exports export_cyclic_helper3 which declares D |
| 12 */ |
| 13 |
| 14 library export_cyclic_test; |
| 15 |
| 16 import 'export_cyclic_helper1.dart'; |
| 17 export 'export_cyclic_helper1.dart'; |
| 18 |
| 19 class A {} |
| 20 |
| 21 void main() { |
| 22 print(new A()); |
| 23 print(new B()); |
| 24 print(new C()); |
| 25 print(new D()); |
| 26 } |
| 27 |
OLD | NEW |