mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
new inference: infer for constructor calls by containing class
This commit is contained in:
+1
-1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user