| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2014, 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 @A(const B()) | |
| 6 library main; | |
| 7 | |
| 8 @B() | |
| 9 import 'package:async_helper/async_helper.dart'; | |
| 10 import 'package:expect/expect.dart'; | |
| 11 | |
| 12 import "dart:math"; | |
| 13 | |
| 14 import 'deferred_mirrors_metadata_lib.dart' deferred as lib1; | |
| 15 | |
| 16 class A { | |
| 17 final B b; | |
| 18 const A(this.b); | |
| 19 String toString() => "A"; | |
| 20 } | |
| 21 | |
| 22 class B { | |
| 23 const B(); | |
| 24 String toString() => "B"; | |
| 25 } | |
| 26 | |
| 27 class C { | |
| 28 const C(); | |
| 29 String toString() => "C"; | |
| 30 } | |
| 31 | |
| 32 class D { | |
| 33 const D(); | |
| 34 String toString() => "D"; | |
| 35 } | |
| 36 | |
| 37 void main() { | |
| 38 asyncStart(); | |
| 39 lib1.loadLibrary().then((_) { | |
| 40 Expect.equals("ABCD", lib1.foo()); | |
| 41 new C(); | |
| 42 new D(); | |
| 43 asyncEnd(); | |
| 44 }); | |
| 45 } | |
| OLD | NEW |