Return an instance type provided by reference type provider for callees

This commit is contained in:
Andrey Vlasovskikh
2013-01-22 17:09:26 +04:00
parent b909c353fc
commit b51445925e
@@ -174,6 +174,9 @@ public class PyCallExpressionImpl extends PyElementImpl implements PyCallExpress
}
final PyType providedType = PyReferenceExpressionImpl.getReferenceTypeFromProviders(target, context, this);
if (providedType != null) {
if (providedType instanceof PyClassType) {
return ((PyClassType)providedType).toInstance();
}
return providedType;
}
if (target instanceof Callable) {