Show only exact error message when calling a method overload with named params #42938
Labels
Area-Compilers
Concept-Diagnostic Clarity
The issues deals with the ease of understanding of errors and warnings.
I used named params to call a specific
String.Join
overload:I missed a cast from
List(Of string)
toString()
, so I expected to get the error:but instead I got this too long user unfriendly error message:
Which contains the true error some where in the heap.
This sort of long misleading overload resolution failure message wastes me a lot of time every time. After all, there is no resolution in this full named argument call. It is just a direct call for an existing overload, so it should be treated as a normal call to a non-overloaded method, and show the exact error message.
This could be relevant to #42857
The text was updated successfully, but these errors were encountered: