checkMostCommonImplicitCast

fun checkMostCommonImplicitCast(implicitCasts: MutableList<CastExpression?>, implicitCastTargets: List<CastExpression?>)

Checks if the current casts are compatible with the casts necessary to match with a new FunctionDeclaration. If a one argument would need to be cast in two different types it would be modified to a cast to UnknownType

Parameters

implicitCasts

current Cast

implicitCastTargets

new Cast