mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
complex inference algorithm for diamond
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
class Neg09 {
|
||||
static class Foo<X extends Number & Comparable<Number>> {}
|
||||
static class DoubleFoo<X extends Number & Comparable<Number>,
|
||||
Y extends Number & Comparable<Number>> {}
|
||||
static class TripleFoo<X extends Number & Comparable<Number>,
|
||||
Y extends Number & Comparable<Number>,
|
||||
Z> {}
|
||||
|
||||
Foo<?> fw = new Foo<<error descr="Cannot infer type arguments for Foo<> because type ? extends Number inferred is not allowed in current context"></error>>();
|
||||
DoubleFoo<?,?> dw = new DoubleFoo<<error descr="Cannot infer type arguments for DoubleFoo<> because type ? extends Number inferred is not allowed in current context"></error>>();
|
||||
TripleFoo<?,?,?> tw = new TripleFoo<<error descr="Cannot infer type arguments for TripleFoo<> because type ? extends Number inferred is not allowed in current context"></error>>();
|
||||
}
|
||||
Reference in New Issue
Block a user