summaryrefslogtreecommitdiff
path: root/test/files/run/t9013/Test.java
blob: 14152b16ac28a236d379743809a279c12f780cb7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import java.util.Comparator;

public class Test {
  public static void main(String[] args) {
    ClassImplementsClass c = new ClassImplementsClass();

    c.x("a", "b", "c");
    c.y("a", "b", "c");
    c.z("a", "b", "c");

    VarargAbstractClass i = new ClassImplementsClass();

    i.x("a", "b", "c");
    i.y("a", "b", "c");
    // System.out.println(i.z("a", "b", "c")); // still incurs a LinkageError.
    // Perhaps due to Uncurry:
    //   > for every repeated Java parameter `x: T...' --> x: Array[T], except:
    //   >    if T is an unbounded abstract type, replace --> x: Array[Object]
  }
}