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

More nullable reference type updates #697

Merged
merged 5 commits into from
Dec 17, 2020
Merged

More nullable reference type updates #697

merged 5 commits into from
Dec 17, 2020

Conversation

slewis74
Copy link
Contributor

As part of working on getting the newer versions (NetCore) of Calamari to run on newer versions of Windows a few more nullable reference type false positives came up. This PR is to address them.

Copy link
Contributor

@benPearce1 benPearce1 left a comment

Choose a reason for hiding this comment

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

👍
no functional changes I can see. One question.

string Evaluate(string expressionOrVariableOrText);
string? Get(string variableName, out string? error, string? defaultValue = null);

[return: NotNullIfNotNull("expressionOrVariableOrText")]
Copy link
Contributor

Choose a reason for hiding this comment

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

This sucks a bit, looks like .Net Core will improve this in the future dotnet/csharplang#373

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, I did try nameof, just to be sure it didn't work :)

@slewis74 slewis74 merged commit cf77e97 into master Dec 17, 2020
@slewis74 slewis74 deleted the enh-calamariwindows branch December 17, 2020 03:54
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.

2 participants