Skip to content

AddTypeAnnotationToObjectOfIndetermianteType code fix adds wrong spacing #15810

@psfinaki

Description

@psfinaki

Consider these two versions of the same code:

let db = 
    [
        {| Name = "Liam"; Id = 2 |}
        {| Name = "Noel"; Id = 3 |}
    ]

let f = List.filter (fun x -> x.Id = 7) db

let db = 
    [
        {| Name = "Liam"; Id = 2 |}
        {| Name = "Noel"; Id = 3 |}
    ]

let f = List.filter (fun (x) -> x.Id = 7) db

image

Applied code fixes lead to different spacing:
image

Accidentally this is more an inconsistency than a bug - but definitely caused by the bug, same cause and treatment as this one

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions