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 SubClass extends SuperClass { |
| 7 | |
| 8 | private int field; |
| 9 | |
| 10 | public SubClass(int field) { |
| 11 | this(field, field + 100); |
| 12 | } |
| 13 | |
| 14 | public SubClass(int one, int other) { |
| 15 | super(one); |
| 16 | field = other; |
| 17 | } |
| 18 | |
| 19 | public String toString() { |
| 20 | return "is " + field + " " + getField(); |
| 21 | } |
| 22 | } |