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

PatternMatching with PropertyPattern not breaking well with multiple conditions #262

Closed
belav opened this issue Jun 3, 2021 · 2 comments
Labels

Comments

@belav
Copy link
Owner

belav commented Jun 3, 2021

if (
    context.ActionDescriptor
        is ControllerActionDescriptor { ActionName: "Post"
            or "Patch"
            or "Delete" }
) { }
// should be something like
if (
    context.ActionDescriptor
        is ControllerActionDescriptor 
            { ActionName: "Post" or "Patch" or "Delete" }
) { }
// although that could also require more breaking with long strings, which maybe should be formatted like
if (
    context.ActionDescriptor
        is ControllerActionDescriptor
            { ActionName: "MuchLongerStringValue"
                or "MuchLongerStringValue"
                or "MuchLongerStringValue"
            }
) { }
@belav belav added type:bug Something isn't working area:formatting labels Jun 3, 2021
@belav
Copy link
Owner Author

belav commented Jul 19, 2021

This will hopefully be handled with #154

@belav
Copy link
Owner Author

belav commented Dec 20, 2021

This is working better now.

@belav belav closed this as completed Dec 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant