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

Leading comments interfering with breaking InitializerExpression #217

Closed
belav opened this issue May 18, 2021 · 1 comment · Fixed by #232
Closed

Leading comments interfering with breaking InitializerExpression #217

belav opened this issue May 18, 2021 · 1 comment · Fixed by #232
Milestone

Comments

@belav
Copy link
Owner

belav commented May 18, 2021

Look into roslyn/src/Compiles/CSharp/Portable/Binder/Semantics/Operators/BinaryOperatorEasyOut.cs
It has some really long line that isn't breaking.

@belav belav modified the milestones: 0.9.4, 0.9.5 May 18, 2021
@belav belav changed the title Weird non-breaking thing Leading comments interfering with breaking May 24, 2021
@belav
Copy link
Owner Author

belav commented May 24, 2021

I've reproduced the problem

class ClassName
{
    private SomeClass[,] someClass = {
        // leading comment should not interfere with the next line breaking
        { longValue______________________________, longValue______________________________, longValue______________________________ },
        {
            longValue______________________________,
            longValue______________________________,
            longValue______________________________
        }
    };
}

@belav belav changed the title Leading comments interfering with breaking Leading comments interfering with breaking InitializerExpression May 24, 2021
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