Chromium Code Reviews

Side by Side Diff: test/codegen/lib/mirrors/deferred_mirrors_metadata_test.dart

Issue 2265533002: Add mirrors tests (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
OLDNEW
(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 }
OLDNEW

Powered by Google App Engine