mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-02 19:28:23 +07:00
inference: treat only non-proper bounds of inference variables as unchecked conversion (IDEA-204125)
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
class Test_3 {
|
||||
|
||||
public static void main(String[] aArgs) {
|
||||
Info info = null;
|
||||
update(info)
|
||||
.withSuper()
|
||||
.withChild();
|
||||
}
|
||||
|
||||
public interface Info<_Info> { }
|
||||
|
||||
public static <Type extends Info<?>> C<?> update(Type aType) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static class C<_Builder extends C< _Builder>> extends A<_Builder> {
|
||||
public _Builder withChild() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
public static class A<_B extends A<_B>> {
|
||||
public _B withSuper() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user