Skip to content

Fix hints bug when different records are treated as equal#866

Merged
knocte merged 2 commits into
fsprojects:masterfrom
webwarrior-ws:fix-hints-bug
Jul 8, 2026
Merged

Fix hints bug when different records are treated as equal#866
knocte merged 2 commits into
fsprojects:masterfrom
webwarrior-ws:fix-hints-bug

Conversation

@webwarrior-ws

Copy link
Copy Markdown
Contributor

Made getHashCode take into account inner expressions of record expressions. This is needed because record is treated as a single leaf node in FSharpLint AST and hint matcher compares only hashes of ast nodes.

Function getHashCode was refactored to make it tail-recursive, as now it has to analyze inner expressions.

For records with different data.
Made getHashCode take into account inner expressions of
record expressions. This is needed because record is treated
as a single leaf node in FSharpLint AST and hint matcher
compares only hashes of ast nodes.

Function getHashCode was refactored to make it
tail-recursive, as now it has to analyze inner expressions.
Comment thread src/FSharpLint.Core/Framework/AbstractSyntaxArray.fs
@knocte knocte merged commit 003ea06 into fsprojects:master Jul 8, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants