fsprojects / fantomas

FSharp source code formatter
https://fsprojects.github.io/fantomas
Other
764 stars 190 forks source link

Inline keyword is missing in property #2908

Closed nojaf closed 1 year ago

nojaf commented 1 year ago

Issue created from fantomas-online

Code

module Meh

type Foo =
    member inline this.Item
        with get (i:int,j: char) : string = ""
        and set (i:int,j: char) (x:string) = printfn "%i %c" i j

Result

module Meh

type Foo =
    member this.Item
        with get (i: int, j: char): string = ""
        and set (i: int, j: char) (x: string) = printfn "%i %c" i j

Problem description

inline is not captured. Check single get/set properties as well.

Extra information

Options

Fantomas main branch at 2023-06-20T07:39:01Z - fc65e0ce06ce572fc8bba1ddca728b2b69fa4623

Default Fantomas configuration

Did you know that you can ignore files when formatting by using a .fantomasignore file? PS: It's unlikely that someone else will solve your specific issue, as it's something that you have a personal stake in.