mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
complex inference algorithm for diamond
This commit is contained in:
+9
@@ -0,0 +1,9 @@
|
||||
class Neg07 {
|
||||
static class SuperFoo<X> {}
|
||||
static class Foo<X extends Number> extends SuperFoo<X> {
|
||||
Foo(X x) {}
|
||||
}
|
||||
|
||||
SuperFoo<String> sf1 = new Foo<<error descr="Type parameter 'java.lang.String' is not within its bound; should extend 'java.lang.Number'"></error>>("");
|
||||
SuperFoo<String> sf2 = new Foo<<error descr="Type parameter 'java.lang.String' is not within its bound; should extend 'java.lang.Number'"></error>>("") {};
|
||||
}
|
||||
Reference in New Issue
Block a user