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 import "package:expect/expect.dart"; | |
7 import "library_private_in_constructor_a.dart"; | 6 import "library_private_in_constructor_a.dart"; |
8 import "library_private_in_constructor_b.dart"; | 7 import "library_private_in_constructor_b.dart"; |
9 | 8 |
10 main() { | 9 main() { |
11 var b = new B(); | 10 var b = new B(); |
12 Expect.equals(499, b.x); | 11 Expect.equals(499, b.x); |
13 Expect.equals(42, b.y); | 12 Expect.equals(42, b.y); |
14 } | 13 } |
OLD | NEW |