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 import 'package:async_helper/async_helper.dart' show asyncTest; |
| 6 |
| 7 import 'package:front_end/src/testing/compiler_common.dart'; |
| 8 import 'package:front_end/front_end.dart'; |
| 9 |
| 10 main() { |
| 11 asyncTest(() async { |
| 12 var sources = <String, dynamic>{ |
| 13 'a.dart': 'class A extends Object with M {} class M {}', |
| 14 'b.dart': 'import "a.dart"; class B extends Object with M {}', |
| 15 'c.dart': 'export "a.dart"; export "b.dart";', |
| 16 }; |
| 17 await compileUnit(sources.keys.toList(), sources, |
| 18 options: new CompilerOptions() |
| 19 ..onError = (e) => throw '${e.severity}: ${e.message}'); |
| 20 }); |
| 21 } |
OLD | NEW |