Mads Ager | 418d1ca | 2017-05-22 09:35:49 +0200 | [diff] [blame] | 1 | // Copyright (c) 2017, the R8 project authors. Please see the AUTHORS file |
| 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. |
| 4 | |
| 5 | public class InnerAccessors { |
| 6 | |
| 7 | private static void privateMethod() { |
| 8 | System.out.println("I'm a private method"); |
| 9 | } |
| 10 | |
| 11 | static class Inner { |
| 12 | public void callPrivateMethodInOuterClass() { |
| 13 | privateMethod(); |
| 14 | } |
| 15 | } |
| 16 | |
| 17 | public static void main(String[] args) { |
| 18 | new Inner().callPrivateMethodInOuterClass(); |
| 19 | } |
| 20 | |
| 21 | } |