[JS IR] Fix callable references ignoring bound parameters
^KT-51102 Fixed
This commit is contained in:
committed by
Space
parent
d9bab7dd96
commit
d908eb6e84
+3
-4
@@ -375,11 +375,10 @@ class CallableReferenceLowering(private val context: CommonBackendContext) : Bod
|
||||
}
|
||||
}
|
||||
|
||||
var j = 0
|
||||
|
||||
while (i < valueParameters.size) {
|
||||
irCall.putValueArgument(j++, getValue(valueParameters[i++]))
|
||||
repeat(funRef.valueArgumentsCount) {
|
||||
irCall.putValueArgument(it, funRef.getValueArgument(it) ?: getValue(valueParameters[i++]))
|
||||
}
|
||||
check(i == valueParameters.size) { "Unused parameters are left" }
|
||||
|
||||
return irCall
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user