Stephan Herhut | d5aa092 | 2017-05-22 16:06:14 +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 | package classmerging; |
| 5 | |
| 6 | public class SubClassThatReferencesSuperMethod extends SuperClassWithReferencedMethod { |
| 7 | |
| 8 | @Override |
| 9 | public String referencedMethod() { |
Christoffer Quist Adamsen | 101d230 | 2018-06-12 16:44:10 +0200 | [diff] [blame] | 10 | System.out.println("In referencedMethod on SubClassThatReferencesSuperMethod"); |
| 11 | System.out.println("Calling referencedMethod on SuperClassWithReferencedMethod with super"); |
| 12 | System.out.println("Got: " + super.referencedMethod()); |
| 13 | return "SubClassThatReferencesSuperMethod.referencedMethod()"; |
Stephan Herhut | d5aa092 | 2017-05-22 16:06:14 +0200 | [diff] [blame] | 14 | } |
| 15 | } |