mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 06:05:01 +07:00
new inference: erasure of type parameters with proper bounds (IDEA-162544)
This commit is contained in:
+1
-1
@@ -296,7 +296,7 @@ public class InferenceIncorporationPhase {
|
||||
if (eqBound == null || PsiType.NULL.equals(eqBound) || eqBound instanceof PsiWildcardType) continue;
|
||||
if (Registry.is("javac.unchecked.subtyping.during.incorporation", true)) {
|
||||
if (TypeCompatibilityConstraint.isUncheckedConversion(upperBound, eqBound)) {
|
||||
if (PsiUtil.resolveClassInType(eqBound) instanceof PsiTypeParameter) {
|
||||
if (PsiUtil.resolveClassInType(eqBound) instanceof PsiTypeParameter && !mySession.isProperType(upperBound)) {
|
||||
mySession.setErased();
|
||||
}
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user