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

Support C# 7 and 8 pattern matching #19

Open
nickspoons opened this issue Oct 20, 2021 · 0 comments
Open

Support C# 7 and 8 pattern matching #19

nickspoons opened this issue Oct 20, 2021 · 0 comments

Comments

@nickspoons
Copy link
Owner

We currently highlight this incorrectly:

if (args.Length == 0 || args[0] is "help" or "-h" or "--help")

image

https://docs.microsoft.com/en-us/dotnet/csharp/whats-new/csharp-7#pattern-matching
https://docs.microsoft.com/en-us/dotnet/csharp/whats-new/csharp-8#more-patterns-in-more-places
https://docs.microsoft.com/en-us/dotnet/csharp/fundamentals/functional/pattern-matching

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

No branches or pull requests

1 participant