Make hasCorrectArity
handle tuples properly
#38795
Merged
hasCorrectArity
handle tuples properly
#38795