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

MethodDeclaration with Constraints not breaking before brace #299

Closed
belav opened this issue Jun 12, 2021 · 0 comments · Fixed by #365
Closed

MethodDeclaration with Constraints not breaking before brace #299

belav opened this issue Jun 12, 2021 · 0 comments · Fixed by #365
Assignees
Milestone

Comments

@belav
Copy link
Owner

belav commented Jun 12, 2021

        public static bool CompareTo<TTypes, TOtherTypes>(
            this TTypes types,
            TOtherTypes otherTypes,
            bool exact,
            bool considerTypeMatchers
        ) where TTypes : IReadOnlyList<Type>
          where TOtherTypes : IReadOnlyList<Type> {
// should be
        public static bool CompareTo<TTypes, TOtherTypes>(
            this TTypes types,
            TOtherTypes otherTypes,
            bool exact,
            bool considerTypeMatchers
        ) where TTypes : IReadOnlyList<Type>
          where TOtherTypes : IReadOnlyList<Type>
        {
@belav belav added type:bug Something isn't working area:formatting labels Jun 12, 2021
@belav belav changed the title MethodDeclaration not breaking before brace MethodDeclaration with Constraints not breaking before brace Jun 12, 2021
@belav belav self-assigned this Jul 19, 2021
@belav belav added this to the 0.9.8 milestone Jul 19, 2021
belav added a commit that referenced this issue Jul 19, 2021
belav added a commit that referenced this issue Jul 23, 2021
belav added a commit that referenced this issue Jul 24, 2021
… more consistent (#365)

* Break after type constraints for method declarations. It keeps things more consistent

closes #299

* Adding back test cases with empty Blocks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant