Maurizio Cimadamore 5f629e503c 7188968: New instance creation expression using diamond is checked twice
Unify method and constructor check logic

Reviewed-by: jjg
2012-09-26 14:22:41 +01:00

15 lines
375 B
Java

/*
* @test /nodynamiccopyright/
* @bug 7002837
*
* @summary Diamond: javac generates diamond inference errors when in 'finder' mode
* @author mcimadamore
* @compile/fail/ref=T7002837.out -Werror -XDrawDiagnostics -XDfindDiamond T7002837.java
*
*/
class T7002837<X extends java.io.Serializable & Comparable<?>> {
T7002837() {}
{ new T7002837<Integer>(); }
}