Cross Reference: Neg10.java
xref
: /
openjdk7
/
langtools
/
test
/
tools
/
javac
/
generics
/
diamond
/
neg
/
Neg10.java
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
536
N/A
/*
536
N/A
* @test /nodynamiccopyright/
913
N/A
* @bug 6939620 7020044
536
N/A
*
913
N/A
* @summary Check that 'complex' diamond can infer type that is too specific
536
N/A
* @author mcimadamore
536
N/A
* @
compile
/
fail
/
ref
=Neg10.out
Neg10.java
-XDrawDiagnostics
536
N/A
*
536
N/A
*/
536
N/A
536
N/A
class
Neg10
{
536
N/A
static
class
Foo
<X> {
536
N/A
Foo
(X x) {}
536
N/A
}
536
N/A
536
N/A
Foo
<
Number
>
fw
=
new
Foo
<>(
1
);
536
N/A
}