bug fixed: analyze arguments in FREE expression position

This commit is contained in:
Svetlana Isakova
2013-09-03 19:56:20 +04:00
parent b5e6568726
commit a53eae79b5
3 changed files with 29 additions and 3 deletions
@@ -180,8 +180,8 @@ public class ArgumentTypeResolver {
if (recordedTypeInfo != null) {
return recordedTypeInfo;
}
ResolutionContext newContext = context.replaceExpectedType(TypeUtils.NO_EXPECTED_TYPE).replaceContextDependency(
ContextDependency.DEPENDENT);
ResolutionContext newContext = context.replaceExpectedType(TypeUtils.NO_EXPECTED_TYPE)
.replaceContextDependency(ContextDependency.DEPENDENT).replaceExpressionPosition(ExpressionPosition.FREE);
return expressionTypingServices.getTypeInfo(expression, newContext);
}