jdk-24/test/langtools/tools/javac/NewGeneric.java
2017-09-12 19:03:39 +02:00

16 lines
294 B
Java

/*
* @test /nodynamiccopyright/
* @bug 4959929
* @summary unclear diagnostic for "new T()"
* @author never
*
* @compile/fail/ref=NewGeneric.out -XDrawDiagnostics NewGeneric.java
*/
public class NewGeneric {
private static class Type<T> {
Type() { T t = new T(); }
}
}