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

Wrong warning "This qualifier is redundant" #16862

Open
Martin521 opened this issue Mar 12, 2024 · 0 comments
Open

Wrong warning "This qualifier is redundant" #16862

Martin521 opened this issue Mar 12, 2024 · 0 comments
Labels
Area-Diagnostics mistakes and possible improvements to diagnostics Bug Impact-Low (Internal MS Team use only) Describes an issue with limited impact on existing code.
Milestone

Comments

@Martin521
Copy link
Contributor

Repro steps

type A = {m: int list}

let f x = []

let g a =
    let m = f a.m
    a.m.Length

For the a in the last line of the above code, FSAC shows a warning "This qualifier is redundant".

Expected behavior

No warning, the qualifier is necessary.

@github-actions github-actions bot added this to the Backlog milestone Mar 12, 2024
@abonie abonie added Impact-Low (Internal MS Team use only) Describes an issue with limited impact on existing code. Area-Diagnostics mistakes and possible improvements to diagnostics and removed Needs-Triage labels Mar 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Diagnostics mistakes and possible improvements to diagnostics Bug Impact-Low (Internal MS Team use only) Describes an issue with limited impact on existing code.
Projects
Status: New
Development

No branches or pull requests

2 participants