Bug report (I searched for similar issues and did not find one)
Current behavior
Writing this:
[EqualityHash]
public DayOfWeek DayOfWeek { get; }
yields this warning:
Type DayOfWeek of member DayOfWeek doesn't implements .GetHashCode(): it won't be used for hash computation. If you can't change the type System.DayOfWeek, you should use a custom hash method or a custom comparer. Alternatively, use something else for hash computation.
Expected behavior
No warning.
The numerical value from the enum should be used for the hashcode computation.
I'm submitting a...
Current behavior
Writing this:
yields this warning:
Expected behavior
No warning. The numerical value from the enum should be used for the hashcode computation.
Environment