new inference: incorporation of capture constraint: captured wildcard treatment

This commit is contained in:
Anna Kozlova
2014-02-06 19:34:12 +01:00
parent 10d4a519b7
commit dd1c5d9cee
@@ -69,6 +69,9 @@ public class InferenceIncorporationPhase {
LOG.assertTrue(parameters.length == typeArgs.length);
for (int i = 0; i < typeArgs.length; i++) {
PsiType aType = typeArgs[i];
if (aType instanceof PsiCapturedWildcardType) {
aType = ((PsiCapturedWildcardType)aType).getWildcard();
}
final InferenceVariable inferenceVariable = mySession.getInferenceVariable(parameters[i]);
LOG.assertTrue(inferenceVariable != null);