| 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 'private_member_lib_b.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() { |
| 14 void _fun2(int i) { } | 14 return 1; |
| 15 } |
| 16 |
| 17 void _fun2(int i) {} |
| 15 } | 18 } |
| 16 | 19 |
| 17 class Test extends B { | 20 class Test extends B { |
| 18 test() { | 21 test() { |
| 19 i = _instanceField; | 22 i = _instanceField; |
| 20 i = A._staticField; | 23 i = A._staticField; |
| 21 i = _fun1(); | 24 i = _fun1(); |
| 22 _fun2(42); | 25 _fun2(42); |
| 23 } | 26 } |
| 24 } | 27 } |
| 25 | 28 |
| 26 void main() { | 29 void main() { |
| 27 new Test().test(); | 30 new Test().test(); |
| 28 } | 31 } |
| OLD | NEW |