blob: 652f7946cce90e4fa9443ee18e86d550891a6654 [file] [log] [blame] [edit]
// Copyright (c) 2017, 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.
package classmerging;
class Outer {
/**
* This class is package private to trigger the generation of bridge methods
* for the visibility change of methods from public subtypes.
*/
class SuperClass {
public String method() {
return "Method in SuperClass.";
}
}
public class SubClass extends SuperClass {
// Intentionally left empty.
}
public SubClass getInstance() {
return new SubClass();
}
}