mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-13 09:19:13 +07:00
revert fix for IDEA-110947 (IDEA-112122)
This commit is contained in:
@@ -572,10 +572,6 @@ public class PsiResolveHelperImpl implements PsiResolveHelper {
|
||||
final boolean captureWildcard) {
|
||||
if (arg instanceof PsiWildcardType && !captureWildcard) return FAILED_INFERENCE;
|
||||
if (arg != PsiType.NULL) {
|
||||
if (arg instanceof PsiWildcardType) {
|
||||
final PsiType bound = ((PsiWildcardType)arg).getBound();
|
||||
if (bound instanceof PsiClassType && ((PsiClassType)bound).isRaw()) return Pair.create(null, constraintType);
|
||||
}
|
||||
return new Pair<PsiType, ConstraintType>(arg, constraintType);
|
||||
}
|
||||
return null;
|
||||
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
class Cast<T> implements SemElement {
|
||||
|
||||
{
|
||||
final SemKey<? extends Cast> key = null;
|
||||
final Cast semElement = getSemElement(key);
|
||||
}
|
||||
|
||||
public <T extends SemElement> T getSemElement(SemKey<T> key) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
class SemKey<T extends SemElement> {}
|
||||
}
|
||||
|
||||
interface SemElement {}
|
||||
+2
-1
@@ -300,7 +300,8 @@ public class GenericsHighlightingTest extends LightDaemonAnalyzerTestCase {
|
||||
public void testIDEA67682() { doTest5(false); }
|
||||
public void testIDEA57391() { doTest5(false); }
|
||||
public void testIDEA110869() { doTest5(false); }
|
||||
public void testIDEA110947() { doTest5(false); }
|
||||
public void _testIDEA110947() { doTest5(false); }
|
||||
public void testIDEA112122() { doTest5(false); }
|
||||
public void testNoInferenceFromTypeCast() { doTest5(false); }
|
||||
public void testCaptureWildcardsInTypeCasts() { doTest5(false); }
|
||||
public void testIDEA111085() { doTest5(false); }
|
||||
|
||||
Reference in New Issue
Block a user