FIR resolve: properly count used arguments in overload conflict resolver

This commit is contained in:
Simon Ogorodnik
2019-04-18 14:25:50 +03:00
committed by Mikhail Glukhikh
parent b4019b0cc1
commit fa135bbab0
@@ -73,7 +73,7 @@ class ConeOverloadConflictResolver(
return FlatSignature(
call,
function.typeParameters.map { it.symbol },
function.valueParameters.map { it.returnTypeRef.coneTypeUnsafe() },
call.argumentMapping!!.map { it.value.returnTypeRef.coneTypeUnsafe() },
function.receiverTypeRef != null,
function.valueParameters.any { it.isVararg },
function.valueParameters.count { it.defaultValue != null },