Tooling implies that _
in member body refers to the instance identifier when it is actually a wildcard pattern
#17932
Labels
Area-LangService-ToolTips
tooltips/hover/quickinfo
Bug
Impact-Low
(Internal MS Team use only) Describes an issue with limited impact on existing code.
Milestone
When an instance member uses a single underscore
_
as its "this" or instance identifier (fsharp/fslang-suggestions#333), the F# tooling implies that any_
pattern used in the member body refers to the instance, even though it does not.Repro steps
Expected behavior
Any
_
patterns in a member body whose instance identifier is also_
should nonetheless be treated by the tooling like wildcard patterns are in general, and nothing should be shown on hover.expected.mp4
Actual behavior
Any
_
patterns in a member body whose instance identifier is also_
are treated by the tooling as though they refer to the instance identifier.unexpected.mp4
Known workarounds
N/A.
Related information
Applies to VS and VS Code, .NET 8 and 9 (and probably earlier?).
The text was updated successfully, but these errors were encountered: