We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Records containing different values return the same hash
type X = {ID :int} let x1 = {ID = 1} let x2 = {ID = 2} printfn $"x1:{x1.GetHashCode()}" printfn $"x2:{x2.GetHashCode()}"
dotnet fable . --lang python python test.py
Expected result: Different hashes
Actual result: Same hashes
x1:5740354900026072187 x2:5740354900026072187
Equality with = does work and returns false.
Equality
=
false
dotnet fable --version
dotnet tool list/update/install
@Freymaurer
The text was updated successfully, but these errors were encountered:
Thanks for the bug report. This issue will be fixed in the next release of Fable
Sorry, something went wrong.
dbrattli
Successfully merging a pull request may close this issue.
Description
Records containing different values return the same hash
Repro code
test.fsx
test.cmd
dotnet fable . --lang python python test.py
Expected and actual results
Expected result: Different hashes
Actual result: Same hashes
Related information
Equality
with=
does work and returnsfalse
.dotnet fable --version
: 4.5.0dotnet tool list/update/install
: 4.7.0@Freymaurer
The text was updated successfully, but these errors were encountered: