-
Notifications
You must be signed in to change notification settings - Fork 831
Closed
Labels
Milestone
Description
This is an error message improvement suggestion after seeing a picture posted in fsharp.org's slack (user Alanay).
Overload can be little tricky at times, when the overload count is too too high, it would be good to have the VS tooltip show a prettier summary.
Repro steps
Here is a simple case with System.Convert.ToString :
let a = System.Convert.ToString('w',4);;Actual behavior
Expected behavior
Looking for proposals, here is a first one which would read better:
No overloads match for method 'ToString'.
Argument types given:
- char
- int
Available overloads:
- Convert.ToString(value: obj, provider: IFormatProvider)
- Convert.ToString(value: bool, provider: IFormatProvider)
- Convert.ToString(value: bool, provider: IFormatProvider)
- Convert.ToString(value: char, provider: IFormatProvider)
- Convert.ToString(value: sbyte, provider: IFormatProvider)
- Convert.ToString(value: byte, provider: IFormatProvider)
... exhaustive list we partially see
Workarounds
- reduce overload count
- taller screens
Related information
- environment: Win10/VS2019 16.0.1
- related:
TrackingError reporting improvements #1103, Improve Error Reporting: When implementation is missing necessary overrides, report a list of them #4982
auduchinok and charlesroddie
