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

feat: support C# 8 and nullable reference types #245

Merged
merged 7 commits into from
Jun 19, 2019
Merged

Conversation

natemcmaster
Copy link
Owner

Resolves #240

This updates the project to compile using C# 8.0 and takes advantage of the nullable reference types feature. Beyond adding nullability annotations, this uncovered a few places where null ref exceptions were possible, so a few minor behavior changes were required.

This also motivated a refactor of CommandLineParser to use pattern matching instead of an enums.

Includes workarounds for dotnet/roslyn#33199 and xunit/xunit#1897

@natemcmaster natemcmaster added this to the 2.4.0-alpha milestone Jun 19, 2019
@natemcmaster natemcmaster changed the title Update project to C# 8 and enable nullable ref types feat: support C# 8 and nullable reference types Jun 19, 2019
@natemcmaster natemcmaster merged commit cf1947b into master Jun 19, 2019
@natemcmaster natemcmaster deleted the csharp8 branch June 19, 2019 06:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support C# 8 nullable ref types
1 participant