-
Notifications
You must be signed in to change notification settings - Fork 789
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
Nullness - Consider supporting Nullable shorthand for TreatWarningsAsErrors #17524
Comments
So the Do I understand it right? |
Yeah, I think that's what C# does currently. |
Yes, not sure about implementation details (csc also supports SO: How to treat ALL C# 8 nullable reference warnings as errors? |
It's done, reopen if you still see it with F# 9 |
This was not done, this proposal is about a syntactical shorthand for doing warningsAsErrors for all nullable-related warnings. (as opposed to listing individual error codes) |
I thought that we did it already for some reason |
Is your feature request related to a problem? Please describe.
In C# it's possible to convert all nullable-related warnings to errors using
<WarningsAsErrors>nullable</WarningsAsErrors>
. From docs:The set of all nullability warnings can be specified with the Nullable shorthand.
So in line with #17486 it would be nice to have WAE behaviour as well.
Describe the solution you'd like
Support
<WarningsAsErrors>nullable</WarningsAsErrors>
Describe alternatives you've considered
Just use specific warning numbers or even
true
.Additional context
.
The text was updated successfully, but these errors were encountered: