File: T7175433.java

package info (click to toggle)
libnb-javaparser-java 9%2B2018-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster
  • size: 65,172 kB
  • sloc: java: 440,096; xml: 6,359; sh: 865; makefile: 314
file content (26 lines) | stat: -rw-r--r-- 531 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*
 * @test /nodynamiccopyright/
 * @bug 7175433 6313164
 * @summary Inference cleanup: add helper class to handle inference variables
 * @compile/fail/ref=T7175433.out -XDrawDiagnostics T7175433.java
 */

import java.util.List;

class Bar {

    private class Foo { }

    <Z> List<Z> m(Object... o) { return null; }
    <Z> List<Z> m(Foo... o) { return null; }

    Foo getFoo() { return null; }
}

public class T7175433 {

    public static void main(String[] args) {
        Bar b = new Bar();
        b.m(b.getFoo());
    }
}