Minor: fix compatible issue

This commit is contained in:
Vitaliy.Bibaev
2017-10-10 17:53:23 +03:00
committed by Yan Zhulanow
parent 2c57853dbe
commit ea3206bba4
@@ -49,16 +49,14 @@ class KotlinChainTransformerImpl : ChainTransformer<KtCallExpression> {
intermediateCalls += IntermediateStreamCallImpl(call.callName(),
call.valueArguments.map { it.toCallArgument() },
KotlinTypes.ANY, KotlinTypes.ANY,
call.textRange,
call.receiverType()!!.getPackage(false))
call.textRange)
}
val terminationsPsiCall = callChain.last()
// TODO: infer true types
val terminationCall = TerminatorStreamCallImpl(terminationsPsiCall.callName(), emptyList(),
KotlinTypes.ANY, KotlinTypes.ANY,
terminationsPsiCall.textRange,
terminationsPsiCall.receiverType()!!.getPackage(false))
terminationsPsiCall.textRange)
return StreamChainImpl(qualifier, intermediateCalls, terminationCall, context)
}