inference: treat only non-proper bounds of inference variables as unchecked conversion (IDEA-204125)

This commit is contained in:
Anna.Kozlova
2019-01-22 13:22:47 +01:00
parent 4c48f0c2b0
commit 41042d7f09
6 changed files with 57 additions and 14 deletions

View File

@@ -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;
}
}
}