backend: fix callable references to constructors
This commit is contained in:
committed by
SvyatoslavScherbina
parent
f3dadfa61c
commit
0688f8e758
+5
-1
@@ -92,7 +92,11 @@ private class CallableReferencesUnbinder(val lower: CallableReferenceLowering,
|
|||||||
val descriptor = expression.descriptor
|
val descriptor = expression.descriptor
|
||||||
val boundArgs = expression.getArguments()
|
val boundArgs = expression.getArguments()
|
||||||
val boundParams = boundArgs.map { it.first }
|
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 startOffset = expression.startOffset
|
||||||
val endOffset = expression.endOffset
|
val endOffset = expression.endOffset
|
||||||
|
|||||||
Reference in New Issue
Block a user