Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SR-7520] Improve error message when hashValue / == synthesizing fails #50062

Open
swift-ci opened this issue Apr 24, 2018 · 2 comments
Open
Labels
compiler The Swift compiler in itself improvement

Comments

@swift-ci
Copy link
Collaborator

Previous ID SR-7520
Radar None
Original Reporter Reitzig (JIRA User)
Type Improvement
Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Improvement
Assignee None
Priority Medium

md5: 3c2c65e45038754229667846f1c8c176

Issue Description:

It would be great if the compiler error message for failed auto-synthesizing of ==, hashValue or similar fails.

Currently, it only outputs “does not conform to protocol ‘Hashable’”; it could inform us about why in a note. Going beyond SR-7519, typical cases include “property/associated value X is not Hashable so I could not synthesize hashValue”.

@belkadan
Copy link
Contributor

belkadan commented May 1, 2018

@DougGregor, @slavapestov, do you know if there's a dup of this?

@stephentyrone
Copy link
Member

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler The Swift compiler in itself improvement
Projects
None yet
Development

No branches or pull requests

3 participants