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

Add code fix for adding missing seq before {…} #784

Open
edgarfgp opened this issue Dec 18, 2024 · 0 comments · May be fixed by #787
Open

Add code fix for adding missing seq before {…} #784

edgarfgp opened this issue Dec 18, 2024 · 0 comments · May be fixed by #787

Comments

@edgarfgp
Copy link
Contributor

I propose we add a code fix for adding missing seq before {…}. This is related to a language suggestion [Deprecate { start..finish } and { start..step..finish }] (fsharp/fslang-suggestions#1033) implemented in dotnet/fsharp#17772 which is currently in preview

Before

let xs = { 1..10 }

let xs = { 1; 10 }

let xs = id { 1..10 }

let xs = id { 1; 10 }

let xs =
    id {
        1..10
    }

let xs =
    id {
        1; 10
    }

After

let xs = seq { 1..10 }

let xs = seq { 1; 10 }

let xs = id (seq { 1..10 })

let xs = id (seq { 1; 10 })

let xs =
    id (seq {
        1..10
    })

let xs =
    id (seq {
        1; 10
    })
@edgarfgp edgarfgp linked a pull request Dec 21, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant