This will help avoid fixes from removing too many arguments which often happens for instance when replacing the entire expression.
I noticed this could be a problem for instance when dealing with List.foldl f initial [] unexpectedArgument which we would fix as initial instead as of initial unexpectedArgument (because the result of the fold function could be a new function).
I'm limiting the number of args each check expects to what the function to check expects.
This will help avoid fixes from removing too many arguments which often happens for instance when replacing the entire expression.
I noticed this could be a problem for instance when dealing with
List.foldl f initial [] unexpectedArgument
which we would fix asinitial
instead as ofinitial unexpectedArgument
(because the result of the fold function could be a new function).I'm limiting the number of args each check expects to what the function to check expects.