| // Copyright (c) 2023, the R8 project authors. Please see the AUTHORS file |
| // for details. All rights reserved. Use of this source code is governed by a |
| // BSD-style license that can be found in the LICENSE file. |
| public class NestHierachy { |
| abstract static class InnerSuper { |
| System.out.println("m1"); |
| System.out.println("m2"); |
| System.out.println("m3"); |
| public static void s1() { |
| System.out.println("s1"); |
| private static void s2() { |
| System.out.println("s2"); |
| static class InnerSub extends InnerSuper { |
| public static void s1() { |
| private static void s2() { |
| public static void callOnInnerSuper(InnerSuper innerSuper) { |
| public static void callOnInnerSub(InnerSub innerSub) { |
| public static void main(String[] args) { |
| callOnInnerSuper(new InnerSub()); |
| callOnInnerSub(new InnerSub()); |