blob: 45413a6fd68e5b085c9ae768fa5142b666d46cc9 [file] [log] [blame]
Mads Ager418d1ca2017-05-22 09:35:49 +02001// Copyright (c) 2016, 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 shaking3;
5
6@shaking3.UsedByReflection
7class A implements Comparable<A>, AnInterfaceWithATag {
8
9 @shaking3.RandomTag
10 public A() {
11 // Intentionally left empty.
12 }
13
14 @Override
15 public String toString() {
16 return "A";
17 }
18
19 public void unused() { }
20
21 @Override
22 public int compareTo(A other) {
23 if (other == this) {
24 return 0;
25 }
26 return 1;
27 }
28}