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 package regress_37955340; 5 6 public class Regress { 7 8 static class A { 9 10 int x(int a) { 11 return a; 12 } 13 } 14 15 static class B extends A { 16 17 int x(int a) { 18 return 2; 19 } 20 } 21 22 public static void main(String[] args) { 23 A a = new B(); 24 System.out.println(a.x(1)); 25 } 26 } 27