blob: b6a9054819b180070cca68574c9ec3c4d34fb925 [file] [log] [blame]
Stephan Herhutd5aa0922017-05-22 16:06:14 +02001// 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.
4package classmerging;
5
6public 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}