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

Expressions of the form switch { cause dotnet-format to fail #948

Closed
mateoatr opened this issue Feb 2, 2021 · 2 comments
Closed

Expressions of the form switch { cause dotnet-format to fail #948

mateoatr opened this issue Feb 2, 2021 · 2 comments
Labels
Resolved-External This issue is fixed by changes outside dotnet/format
Milestone

Comments

@mateoatr
Copy link

mateoatr commented Feb 2, 2021

Whenever there's a switch expression with a { in the same line (var switch {), dotnet-format reports whitespace formatting errors. This makes it hard to understand what's wrong. For an example, see here: https://dev.azure.com/dnceng/public/_build/results?buildId=971006&view=logs&j=ed7ee28b-73cd-526d-4740-b3f2e2c1c6bb&t=e71a6653-5b93-50ae-6545-9f859da4990d&l=365.

@JoeRobich
Copy link
Member

Hi @mateoatr, Switch expressions should be supported in the 5.x builds. We are working toward a public release but nightlies can be pulled from Azure Artifacts. Roslyn support for switch expressions was tracked by dotnet/roslyn#36913

@JoeRobich JoeRobich added the Resolved-External This issue is fixed by changes outside dotnet/format label Feb 5, 2021
@JoeRobich
Copy link
Member

Closing as a 5.0 build is now available on NuGet.org

@jmarolf jmarolf added this to the 5.0 milestone Feb 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolved-External This issue is fixed by changes outside dotnet/format
Projects
None yet
Development

No branches or pull requests

3 participants