mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-13 09:19:13 +07:00
complex inference algorithm for diamond
This commit is contained in:
+7
@@ -0,0 +1,7 @@
|
||||
class Neg10 {
|
||||
static class Foo<X> {
|
||||
Foo(X x) {}
|
||||
}
|
||||
|
||||
<error descr="Incompatible types. Found: 'Neg10.Foo<java.lang.Integer>', required: 'Neg10.Foo<java.lang.Number>'">Foo<Number> fw = new Foo<>(1);</error>
|
||||
}
|
||||
Reference in New Issue
Block a user