Confusing overload resolution behavior with params object[]
parameter when passing int[]
vs string[]
(or array vs collection expression)
#76854
Labels
Two scenarios I found confusing:
Scenario 1
Not sure if it's expected and why would "string" be very different from "int", and why collection expression is different. Both
string
andint
are convertible toobject
. So to me feels like either both should error or both should be good. The former is a big breaking change.Scenario 2
The text was updated successfully, but these errors were encountered: