Skip to content

Ensure access path is from FSharp namespace in VirtualCallAnalyzer #87

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

Merged
merged 2 commits into from
Jan 8, 2025

Conversation

nojaf
Copy link
Contributor

@nojaf nojaf commented Jan 8, 2025

Fixes #86 in the way that the analyzer won't trigger.
I'm not quite sure if this case is problematic with the usage of Seq.tryHead, leading to a virtual call or not. Thing is I'm not quite sure what the code fix would be.
We could revisit this in a future PR maybe. For now I would no longer report it.

Thoughts @dawedawe @Smaug123?

Smaug123
Smaug123 previously approved these changes Jan 8, 2025
Copy link
Contributor

@Smaug123 Smaug123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems reasonable to me. I don't know whether you get a virtual call in this case either, but correctness is more important than perf.

@nojaf nojaf merged commit 37e99ac into main Jan 8, 2025
1 check passed
@nojaf nojaf deleted the fix-86 branch January 8, 2025 19:55
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.

VirtualCall analyzer suggests quickfix on Collections.Generic.List
2 participants