Skip to content

Add pragma to suppress unreachable pattern warnings #143

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

paulomorgado
Copy link

Addresses #66

This commit introduces the `#pragma warning disable CS8510` directive to suppress warnings about unreachable patterns in switch expressions. The directive has been added to `SourceGenerationHelper.cs` and various test files to prevent unnecessary warnings during code generation. The corresponding `#pragma warning restore CS8510` directive has also been included to restore the warning state after the relevant code sections.
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 this pull request may close these issues.

1 participant