OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 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 | 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 LibraryPrivateInConstructor; | 5 library LibraryPrivateInConstructor; |
| 6 |
6 import "package:expect/expect.dart"; | 7 import "package:expect/expect.dart"; |
7 import "library_private_in_constructor_a.dart"; | 8 import "library_private_in_constructor_a.dart"; |
8 import "library_private_in_constructor_b.dart"; | 9 import "library_private_in_constructor_b.dart"; |
9 | 10 |
10 main() { | 11 main() { |
11 var b = new B(); | 12 var b = new B(); |
12 Expect.equals(499, b.x); | 13 Expect.equals(499, b.x); |
13 Expect.equals(42, b.y); | 14 Expect.equals(42, b.y); |
14 } | 15 } |
OLD | NEW |