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

Add support for default(T) #92

Merged
merged 1 commit into from
Jul 8, 2024

Conversation

manfred-brands
Copy link
Contributor

@manfred-brands manfred-brands commented Jul 8, 2024

Fixes #91

Also moved checks to see if an operator is a check against null into a single extension method.

The compiler creates different code for default(string) vs default(T)

Copy link
Owner

@AArnott AArnott left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@AArnott AArnott merged commit 5db1dd3 into AArnott:main Jul 8, 2024
1 check passed
@manfred-brands manfred-brands deleted the CodeFixForIsDefaultT branch August 12, 2024 00:41
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.

Bad CodeFix for '== default(T)'
2 participants