mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-105846
This commit is contained in:
@@ -99,7 +99,7 @@ public class PsiCapturedWildcardType extends PsiType {
|
||||
}
|
||||
else {
|
||||
return bound instanceof PsiCapturedWildcardType
|
||||
? ((PsiCapturedWildcardType)bound).getUpperBound()
|
||||
? PsiWildcardType.createSuper(myContext.getManager(), ((PsiCapturedWildcardType)bound).getUpperBound())
|
||||
: PsiType.getJavaLangObject(myContext.getManager(), getResolveScope());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -146,7 +146,7 @@ public class TypesDistinctProver {
|
||||
if (superBoundClass instanceof PsiTypeParameter) return false;
|
||||
return !InheritanceUtil.isInheritorOrSelf(superBoundClass, extendsBoundClass, true);
|
||||
}
|
||||
return true;
|
||||
return provablyDistinct(extendsBound, superBound);
|
||||
}
|
||||
|
||||
if (!type1.isBounded() || !type2.isBounded()) {
|
||||
|
||||
+1
@@ -1,5 +1,6 @@
|
||||
class MyClass {
|
||||
public static void main(Class<? extends MyClass> clazz){
|
||||
clazz = (Class<? extends MyClass>) clazz.getSuperclass();
|
||||
<error descr="Incompatible types. Found: 'java.lang.Class<capture<? super capture<? extends MyClass>>>', required: 'java.lang.Class<? extends MyClass>'">clazz = clazz.getSuperclass()</error>;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user