Skip to content

SourceTextComparer has odd IEqualityComparer semantics #71006

@ToddGrun

Description

@ToddGrun

The Equals method is using the content, whereas the GetHashCode method is using the contents and encoding. This mismatch seems like it could cause issues downstream.

Metadata

Metadata

Assignees

Labels

Area-CompilersuntriagedIssues and PRs which have not yet been triaged by a lead

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