new inference: infer for constructor calls by containing class

This commit is contained in:
anna
2013-10-30 17:46:34 +01:00
parent abc8681f53
commit cc965631e0
@@ -81,7 +81,7 @@ public class ExpressionCompatibilityConstraint extends InputOutputConstraintForm
final PsiMethod method = ((PsiCallExpression)myExpression).resolveMethod();
PsiType returnType = null;
InferenceSession callSession = null;
if (method != null) {
if (method != null && !method.isConstructor()) {
returnType = method.getReturnType();
final PsiParameter[] parameters = method.getParameterList().getParameters();
if (returnType != null) {