Skip to content

Get offered to simplify GetHashCode to a type that is not accessible #42978

@davkean

Description

@davkean

Steps to Reproduce:

image

Expected Behavior:
No suggestion

Actual Behavior:

Severity	Code	Description	Project	File	Line	Suppression State
Message	IDE0070	'GetHashCode' implementation can be simplified	Microsoft.VisualStudio.ProjectSystem.VS.Implementation	C:\CPS\src\Microsoft.VisualStudio.ProjectSystem.VS.Implementation\Package\DebugTargetsSubscriptionService.cs	510	Active

After using the suggestion, get:

Severity	Code	Description	Project	File	Line	Suppression State
Error	CS0122	'HashCode' is inaccessible due to its protection level	Microsoft.VisualStudio.ProjectSystem.VS.Implementation	C:\CPS\src\Microsoft.VisualStudio.ProjectSystem.VS.Implementation\Package\DebugTargetsSubscriptionService.cs	512	Active

Metadata

Metadata

Assignees

No one assigned

    Labels

    Resolution-FixedThe bug has been fixed and/or the requested behavior has been implemented

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions