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('PrivateMemberLibA'); | 5 #library('PrivateMemberLibA'); |
6 | 6 |
7 #import('PrivateMemberLibB.dart'); | 7 #import('private_member_lib_b.dart'); |
8 | 8 |
9 class A { | 9 class A { |
10 int i; | 10 int i; |
11 int _instanceField; | 11 int _instanceField; |
12 static int _staticField; | 12 static int _staticField; |
13 int _fun1() { return 1; } | 13 int _fun1() { return 1; } |
14 void _fun2(int i) { } | 14 void _fun2(int i) { } |
15 } | 15 } |
16 | 16 |
17 class Test extends B { | 17 class Test extends B { |
18 test() { | 18 test() { |
19 i = _instanceField; | 19 i = _instanceField; |
20 i = A._staticField; | 20 i = A._staticField; |
21 i = _fun1(); | 21 i = _fun1(); |
22 _fun2(42); | 22 _fun2(42); |
23 } | 23 } |
24 } | 24 } |
25 | 25 |
26 void main() { | 26 void main() { |
27 new Test().test(); | 27 new Test().test(); |
28 } | 28 } |
OLD | NEW |