test/langtools/tools/javac/generics/inference/6278587/T6278587Neg.java
author phh
Sat, 30 Nov 2019 14:33:05 -0800
changeset 59330 5b96c12f909d
parent 51047 860a3648c494
permissions -rw-r--r--
8234541: C1 emits an empty message when it inlines successfully Summary: Use "inline" as the message when successfull Reviewed-by: thartmann, mdoerr Contributed-by: navy.xliu@gmail.com
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
10
06bc494ca11e Initial load
duke
parents:
diff changeset
     1
/*
30718
391eff0516a6 8074502: Group 13c: golden files for tests in tools/javac/generics dir
sogoel
parents: 15717
diff changeset
     2
 * @test    /nodynamiccopyright/
15717
ab55670d2e62 8007464: Add graph inference support
mcimadamore
parents: 5520
diff changeset
     3
 * @bug     6278587 8007464
10
06bc494ca11e Initial load
duke
parents:
diff changeset
     4
 * @summary Inference broken for subtypes of subtypes of F-bounded types
06bc494ca11e Initial load
duke
parents:
diff changeset
     5
 * @author  Peter von der Ah\u00e9
51047
860a3648c494 8028563: Remove javac support for 6/1.6 source and target values
darcy
parents: 47216
diff changeset
     6
 * @compile/fail/ref=T6278587Neg.out -XDrawDiagnostics -source 7 -Xlint:-options T6278587Neg.java
15717
ab55670d2e62 8007464: Add graph inference support
mcimadamore
parents: 5520
diff changeset
     7
 * @compile T6278587Neg.java
10
06bc494ca11e Initial load
duke
parents:
diff changeset
     8
 */
06bc494ca11e Initial load
duke
parents:
diff changeset
     9
06bc494ca11e Initial load
duke
parents:
diff changeset
    10
public abstract class T6278587Neg {
06bc494ca11e Initial load
duke
parents:
diff changeset
    11
    interface A<T extends A<T>> {}
06bc494ca11e Initial load
duke
parents:
diff changeset
    12
    interface B extends A<B> {}
06bc494ca11e Initial load
duke
parents:
diff changeset
    13
    interface C extends B {}
06bc494ca11e Initial load
duke
parents:
diff changeset
    14
    interface D<T> {}
06bc494ca11e Initial load
duke
parents:
diff changeset
    15
    abstract <T extends A<T>, S extends T> D<T> m(S s);
06bc494ca11e Initial load
duke
parents:
diff changeset
    16
    {
06bc494ca11e Initial load
duke
parents:
diff changeset
    17
        C c = null;
06bc494ca11e Initial load
duke
parents:
diff changeset
    18
        m(c);
06bc494ca11e Initial load
duke
parents:
diff changeset
    19
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
    20
}