Maurizio Cimadamore 7229f89614 8019824: very long error messages on inference error
Inference error messages shows several spurious captured variables generated during an inference loop

Reviewed-by: jjg, vromero
2013-07-05 11:05:02 +01:00

16 lines
391 B
Java

/**
* @test /nodynamiccopyright/
* @bug 8019824
* @summary very long error messages on inference error
* @compile/fail/ref=T8019824.out -XDrawDiagnostics T8019824.java
*/
class T8019824 {
void test(Class<? extends Foo<?, ?>> cls) {
Foo<?, ?> foo = make(cls);
}
<A, B, C extends Foo<A, B>> Foo<A, B> make(Class<C> cls) { return null; }
interface Foo<A, B> {}
}