Fix bug when stream chain lose terminator call arguments

This commit is contained in:
Vitaliy.Bibaev
2017-10-24 18:28:30 +03:00
committed by Yan Zhulanow
parent 4cb8cc3653
commit bc7d30bd99
@@ -38,7 +38,8 @@ class KotlinChainTransformerImpl : ChainTransformer<KtCallExpression> {
val terminationsPsiCall = callChain.last()
// TODO: infer true types
val terminationCall = TerminatorStreamCallImpl(terminationsPsiCall.callName(), emptyList(),
val terminationCall = TerminatorStreamCallImpl(terminationsPsiCall.callName(),
terminationsPsiCall.valueArguments.map { it.toCallArgument() },
KotlinTypes.ANY, KotlinTypes.ANY,
terminationsPsiCall.textRange)