Fix wrong inferred type argument in InlineCodegen::inlineCall

This commit is contained in:
Victor Petukhov
2022-04-26 20:15:33 +03:00
committed by teamcity
parent 20a8e5d742
commit d4d45a8410
@@ -74,7 +74,7 @@ abstract class InlineCodegen<out T : BaseExpressionCodegen>(
val infos = expandMaskConditionsAndUpdateVariableNodes(
node, maskStartIndex, maskValues, methodHandleInDefaultMethodIndex,
parameters.parameters.filter { it.functionalArgument === DefaultValueOfInlineParameter }
.mapTo(mutableSetOf()) { parameters.getDeclarationSlot(it) }
.mapTo<_, _, MutableCollection<Int>>(mutableSetOf()) { parameters.getDeclarationSlot(it) }
)
for (info in infos) {
val lambda = DefaultLambda(info, sourceCompiler, node.name.substringBeforeLast("\$default"))