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

Comment after colon is restored after return type #2827

Open
1 of 3 tasks
nojaf opened this issue Apr 5, 2023 · 0 comments
Open
1 of 3 tasks

Comment after colon is restored after return type #2827

nojaf opened this issue Apr 5, 2023 · 0 comments

Comments

@nojaf
Copy link
Contributor

nojaf commented Apr 5, 2023

Issue created from fantomas-online

Code

type SomeType() =

    let mutable v: string = ""

    member this.MyProperty
        with get (): // comment
                                string = 
                                """
                                foobarry
                                """
        and set (value: string): //comment
                                    unit = v <- value

Result

type SomeType() =

    let mutable v: string = ""

    member this.MyProperty
        with get (): string // comment
        =
            """
                                foobarry
                                """
        and set (value: string): unit //comment
        = v <- value

Problem description

Related to #2825. Not a priority though.

Extra information

  • The formatted result breaks my code.
  • The formatted result gives compiler warnings.
  • I or my company would be willing to help fix this.

Options

Fantomas main branch at 2023-04-03T14:40:17Z - 9298c26

Default Fantomas configuration

Did you know that you can ignore files when formatting from fantomas-tool or the FAKE targets by using a .fantomasignore file?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants