OLD | NEW |
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 // Dart test for testing access to private fields. | 4 // Dart test for testing access to private fields. |
5 part of Private3Test; | |
6 | 5 |
7 main() { | 6 main() { |
8 PrivateMain.main(); | 7 PrivateMain.main(); |
9 } | 8 } |
10 | 9 |
11 class PrivateMain { | 10 class PrivateMain { |
12 | 11 |
13 static const _myPrecious = "A Ring"; | 12 static const _myPrecious = "A Ring"; |
14 | 13 |
15 static accessMyPrivates() { | 14 static accessMyPrivates() { |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 } | 48 } |
50 Expect.equals(-1, value); | 49 Expect.equals(-1, value); |
51 } | 50 } |
52 | 51 |
53 static main() { | 52 static main() { |
54 accessMyPrivates(); | 53 accessMyPrivates(); |
55 accessMyLibPrivates(); | 54 accessMyLibPrivates(); |
56 accessOtherLibPrivates(); | 55 accessOtherLibPrivates(); |
57 } | 56 } |
58 } | 57 } |
OLD | NEW |