backend: fix callable references to constructors

This commit is contained in:
Svyatoslav Scherbina
2017-02-27 11:26:07 +07:00
committed by SvyatoslavScherbina
parent f3dadfa61c
commit 0688f8e758
@@ -92,7 +92,11 @@ private class CallableReferencesUnbinder(val lower: CallableReferenceLowering,
val descriptor = expression.descriptor
val boundArgs = expression.getArguments()
val boundParams = boundArgs.map { it.first }
val unboundParams = descriptor.allValueParameters - boundParams
val allParams = with (descriptor) {
listOf(dispatchReceiverParameter, extensionReceiverParameter).filterNotNull() + valueParameters
}
val unboundParams = allParams - boundParams
val startOffset = expression.startOffset
val endOffset = expression.endOffset