fsharp icon indicating copy to clipboard operation
fsharp copied to clipboard

Type of second field in nested update lacks highlighting

Open BoundedChenn31 opened this issue 1 year ago • 0 comments

Similar to https://github.com/dotnet/fsharp/issues/15696 but for second type qualifier.

Repro steps

module Say =
    
    type Person = {
        Id: int64
        Info: PersonInfo
    }
    and PersonInfo = {
        FirstName: string
        LastName: string
    }
    
    let copy (p: Person) =
        let _ =
            { p with
                Person.Info.FirstName = "Joe"
                Person.Info.LastName = "Bar" }
        ()

2024-07-23_011354

As you can see, first Person in Person.Info.FirstName has highlighting, but second Person does not.

Related information .NET 8.0.303

BoundedChenn31 avatar Jul 22 '24 22:07 BoundedChenn31