Skip to content

Error hint in IDE #14444

@RealmPlume

Description

@RealmPlume

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-LangService-CodeFixesCode fixes associated with diagnosticsBugImpact-Medium(Internal MS Team use only) Describes an issue with moderate impact on existing code.

    Type

    No type

    Projects

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions