From 28e46422892905a4afb9a052d259d5d98618248a Mon Sep 17 00:00:00 2001 From: svtk Date: Fri, 1 Nov 2013 13:02:46 +0400 Subject: [PATCH] comment added --- .../org/jetbrains/jet/lang/resolve/calls/CallResolver.java | 4 ++-- .../lang/resolve/calls/context/ResolutionResultsCache.java | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/compiler/frontend/src/org/jetbrains/jet/lang/resolve/calls/CallResolver.java b/compiler/frontend/src/org/jetbrains/jet/lang/resolve/calls/CallResolver.java index 07f03d994a6..8e5b2b47328 100644 --- a/compiler/frontend/src/org/jetbrains/jet/lang/resolve/calls/CallResolver.java +++ b/compiler/frontend/src/org/jetbrains/jet/lang/resolve/calls/CallResolver.java @@ -395,9 +395,9 @@ public class CallResolver { if (results.isSingleResult()) { ResolvedCallWithTrace resultingCall = results.getResultingCall(); - CallCandidateResolutionContext callCandidateResolutionContext = CallCandidateResolutionContext.createForCallBeingAnalyzed( + CallCandidateResolutionContext contextForCallToCompleteTypeArgumentInference = CallCandidateResolutionContext.createForCallBeingAnalyzed( results.getResultingCall().getCallToCompleteTypeArgumentInference(), context, tracing); - context.resolutionResultsCache.recordDeferredComputationForCall(callKey, resultingCall, callCandidateResolutionContext); + context.resolutionResultsCache.recordDeferredComputationForCall(callKey, resultingCall, contextForCallToCompleteTypeArgumentInference); } } diff --git a/compiler/frontend/src/org/jetbrains/jet/lang/resolve/calls/context/ResolutionResultsCache.java b/compiler/frontend/src/org/jetbrains/jet/lang/resolve/calls/context/ResolutionResultsCache.java index 8a6d182ac9c..01944fda42d 100644 --- a/compiler/frontend/src/org/jetbrains/jet/lang/resolve/calls/context/ResolutionResultsCache.java +++ b/compiler/frontend/src/org/jetbrains/jet/lang/resolve/calls/context/ResolutionResultsCache.java @@ -54,6 +54,7 @@ public interface ResolutionResultsCache { @Nullable DelegatingBindingTrace getResolutionTrace(@NotNull CallKey callKey); + //For VariableAsFunctionCall deferredComputation is taken for its function call, but resolvedCall is the VariableAsFunctionCall itself. void recordDeferredComputationForCall( @NotNull CallKey callKey, @NotNull ResolvedCallWithTrace resolvedCall,