diff --git a/compiler/frontend/src/org/jetbrains/jet/lang/resolve/calls/context/CallCandidateResolutionContext.java b/compiler/frontend/src/org/jetbrains/jet/lang/resolve/calls/context/CallCandidateResolutionContext.java index 075fca6839e..93ce5611569 100644 --- a/compiler/frontend/src/org/jetbrains/jet/lang/resolve/calls/context/CallCandidateResolutionContext.java +++ b/compiler/frontend/src/org/jetbrains/jet/lang/resolve/calls/context/CallCandidateResolutionContext.java @@ -41,18 +41,22 @@ public final class CallCandidateResolutionContext CallCandidateResolutionContext create( @NotNull ResolvedCallImpl candidateCall, @NotNull ResolutionTask task, @NotNull BindingTrace trace, @NotNull TracingStrategy tracing, @NotNull Call call) { - return new CallCandidateResolutionContext(candidateCall, tracing, trace, task.scope, call, task.expectedType, task.dataFlowInfo, task.namespacesAllowed); + return new CallCandidateResolutionContext(candidateCall, tracing, trace, task.scope, call, task.expectedType, + task.dataFlowInfo, task.namespacesAllowed, true); } public static CallCandidateResolutionContext create( @@ -64,7 +68,8 @@ public final class CallCandidateResolutionContext CallCandidateResolutionContext create( @NotNull BasicCallResolutionContext context, @NotNull TracingStrategy tracing, @NotNull ResolvedCallImpl candidateCall) { - return new CallCandidateResolutionContext(candidateCall, tracing, context.trace, context.scope, context.call, context.expectedType, context.dataFlowInfo, context.namespacesAllowed); + return new CallCandidateResolutionContext(candidateCall, tracing, context.trace, context.scope, context.call, + context.expectedType, context.dataFlowInfo, context.namespacesAllowed, true); } @Override @@ -75,7 +80,8 @@ public final class CallCandidateResolutionContext(candidateCall, tracing, trace, scope, call, expectedType, dataFlowInfo, namespacesAllowed); + return new CallCandidateResolutionContext(candidateCall, tracing, trace, scope, call, expectedType, dataFlowInfo, + namespacesAllowed, false); } @Override