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 /nullable:warnings and /nullable:safeonlywarnings #32071

Merged
merged 1 commit into from
Jan 2, 2019

Conversation

AlekseyTs
Copy link
Contributor

No description provided.

@AlekseyTs AlekseyTs requested review from 333fred, cston and jcouv December 31, 2018 19:06
@AlekseyTs AlekseyTs requested a review from a team as a code owner December 31, 2018 19:06
@@ -63286,6 +63539,8 @@ static object M()
assertDiagnosticOptions(NullableContextOptions.Disable);
assertDiagnosticOptions(NullableContextOptions.Enable);
assertDiagnosticOptions(NullableContextOptions.SafeOnly);
assertDiagnosticOptions(NullableContextOptions.Warnings);
assertDiagnosticOptions(NullableContextOptions.SafeOnlyWarnings);
Copy link
Member

@jcouv jcouv Dec 31, 2018

Choose a reason for hiding this comment

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

Maybe I missed it, but do we have a test that shows that safeonlywarnings produces a subset of diagnostics produced by warnings? #Resolved

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Maybe I missed it, but do we have a test that shows that safeonlywarnings produces a subset of diagnostics produced by warnings?

We do have tests to verify that NullableContextOptions.SafeOnly/NullableContextOptions.SafeOnlyWarnings and NullableContextOptions.Enable/NullableContextOptions.Warnings have similar effect on diagnostics.

I extended existing tests accordingly


In reply to: 244613425 [](ancestors = 244613425)

Copy link
Member

@jcouv jcouv left a comment

Choose a reason for hiding this comment

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

LGTM Thanks (iteration 1) with a test suggestion (if we don't have it already)

@jcouv jcouv self-assigned this Dec 31, 2018
@jcouv jcouv added this to the 16.0.P2 milestone Dec 31, 2018
@AlekseyTs
Copy link
Contributor Author

@cston, @333fred Please review

@AlekseyTs
Copy link
Contributor Author

CC @jaredpar For approval

@jaredpar
Copy link
Member

jaredpar commented Jan 2, 2019

Approved

@AlekseyTs AlekseyTs merged commit 92b9427 into dotnet:master Jan 2, 2019
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.

4 participants