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

Error hint in IDE #14444

Closed
Tracked by #15408
RealmPlume opened this issue Dec 7, 2022 · 1 comment
Closed
Tracked by #15408

Error hint in IDE #14444

RealmPlume opened this issue Dec 7, 2022 · 1 comment
Labels
Area-LangService-CodeFixes Code fixes associated with diagnostics Bug Impact-Medium (Internal MS Team use only) Describes an issue with moderate impact on existing code.
Milestone

Comments

@RealmPlume
Copy link

the following code:

   type AH() =
      member val X = 0 with get,set

   type GM() =
      member val ah = AH() with get,set
      static member F() = GM()

   let foo(ah: AH) =
      let x = GM()
      x.ah.X <- ah.X // look here
      x

Hint occurred
image

it try fix it to:
image

but, when I change ah to Ah, it becomes normal:

   type AH() =
      member val X = 0 with get,set

   type GM() =
      member val Ah = AH() with get,set // change
      static member F() = GM()

   let foo(ah: AH) =
      let x = GM()
      x.Ah.X <- ah.X // change
      x

image

The above happened in Microsoft Visual Studio Enterprise 2022 17.4.2

@github-actions github-actions bot added this to the Backlog milestone Dec 7, 2022
@vzarytovskii vzarytovskii moved this to Not Planned in F# Compiler and Tooling Dec 7, 2022
@vzarytovskii vzarytovskii added the Area-LangService-CodeFixes Code fixes associated with diagnostics label Dec 8, 2022
@T-Gro T-Gro added Impact-Medium (Internal MS Team use only) Describes an issue with moderate impact on existing code. and removed Bug labels Dec 12, 2022
@0101 0101 added Bug and removed Needs-Triage labels Mar 20, 2023
@psfinaki
Copy link
Member

Hey @GratianPlume - looks like I cannot reproduce this in the latest VS, the code fix suggestion doesn't pop up:

image

I will close this - feel free to reopen if you come across this again.

@github-project-automation github-project-automation bot moved this from Not Planned to Done in F# Compiler and Tooling Jun 15, 2023
@psfinaki psfinaki mentioned this issue Jun 15, 2023
85 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-LangService-CodeFixes Code fixes associated with diagnostics Bug Impact-Medium (Internal MS Team use only) Describes an issue with moderate impact on existing code.
Projects
Archived in project
Development

No branches or pull requests

5 participants