Fix missing smart casts

This commit is contained in:
Stanislav Erokhin
2015-11-27 15:33:22 +03:00
parent 3776e5698f
commit 22b14cfc5c
@@ -233,8 +233,9 @@ class NewResolveOldInference(
val variableReceiver = ExpressionReceiver.create(calleeExpression!!,
(variableDescriptor as VariableDescriptor).type,
basicCallContext.trace.bindingContext)
// todo hack
// used for smartCasts, see: DataFlowValueFactory.getIdForSimpleNameExpression
tracing.bindReference(variable.resolvedCall.trace, variable.resolvedCall)
// todo hacks
val functionCall = CallTransformer.CallForImplicitInvoke(
basicCallContext.call.explicitReceiver.check { useExplicitReceiver } ?: ReceiverValue.NO_RECEIVER,
variableReceiver, basicCallContext.call)