OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 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 | 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 library lib2; | 5 library lib2; |
6 | 6 |
7 import "package:expect/expect.dart"; | 7 import "package:expect/expect.dart"; |
8 import "deferred_static_seperate_lib1.dart"; | 8 import "deferred_static_seperate_lib1.dart"; |
9 | 9 |
10 foo() { | 10 foo() { |
11 Expect.equals(1, C.foo()); | 11 Expect.equals(1, C.foo()); |
12 Expect.mapEquals({}, C1.foo); | 12 Expect.mapEquals({}, C1.foo); |
13 | 13 |
14 Expect.mapEquals({1: 2}, C2.foo); | 14 Expect.mapEquals({1: 2}, C2.foo); |
15 C2.foo = {1: 2}; | 15 C2.foo = {1: 2}; |
16 Expect.mapEquals({1: 2}, C2.foo); | 16 Expect.mapEquals({1: 2}, C2.foo); |
17 | 17 |
18 Expect.equals(x, C3.foo); | 18 Expect.equals(x, C3.foo); |
19 Expect.mapEquals({x: x}, C4.foo); | 19 Expect.mapEquals({x: x}, C4.foo); |
20 Expect.listEquals([const{1: 3}], C5.foo); | 20 Expect.listEquals([ |
21 | 21 const {1: 3} |
22 } | 22 ], C5.foo); |
| 23 } |
OLD | NEW |